Move javascript from calendar pages to mvccc.js