moved javascript to app.js