editing past.js for calendar