Implemented paged calendar, refactored goal.js