change calendar.js to eliminate weekly view warnings