update app.js file