Fix app.js not loading by removing type; clean up

Turns out the error is generated because I specified an unknown type in
the script tag. Removing it makes everything work cleanly.

Also clenaed up the development mess I had made in the previous commit.