fix(app): order of script inclusions

Fixes #278


The application JS is now included as last element in the `index.html`, specifically after any plugins. As a consequence, the subgenerators append their own snippets in the same block.