added function to keep track of day to calendar.js