Use normal script to include app.js

Previously app.js was loaded with an AJAX call. Changing this to a
normal script tag and loading it as a resource allows the browser to
produce line numbers for when something goes wrong. This is much easier
to debug.