[nim] Extracting javascripts from index html into a template so we can ensure that the same statics that are loaded for the app are loaded as the source code the jasmine tests test