Modified app.js