update code in app.js