Moved JS out into app.js