fixed bug in app.js