moved in page javascript to app.js