Fixed a small bug on app.js