Update calendar.js

This is to fix the issue #170.
Merge pull request #307 from smoreau/patch-1

Update calendar.js