Modification of app.js