app.js file updated