move JS to app.js