Fixed calendar bug in app.js

Fixed bug in app.js for the Calendar