some changes to app.js