Moved JS from index.html to app.js