fixing minor bug in app.js