app.js code change