Calendar: minor syntax fixes to make jshint happy