Some updates to app.js