modified app.js