add global utilities in closure for calendar.js