npf.js is the main bulk of the code, and it exposes three functions:
Render content returns an object {content, ask}. It returns the ask content separately so it can be
handled spearately by the consuming client. content
is an HTML element, ask
is itself an object
containing content
(an HTML element) and the other properties of the ask layout type
(specifically of interest is the attribution
property).