moved javascript to calendar.js