Moved js from html to app.js, where it should live