Fixed bug in app.js