calendar.js: fix problematic variable which breaks the build