example idea of extracting js bootstrapping from html views, for use with content security protection