revert calendar.js to prev working