application file and calendar controller are refactored a bit to fulfill jshint complaints' promises
test configurations in karma and test suite for calendar added