resolved error in app.js