Modifications to app.js