moving script.js to app.js