fixed a bug where the app.js is loaded before the calendar.js and no calendar will beshown