reduce complexity of calendar.js
Moment is now a dependency.
Closes #21. Add calendar test.