cleanup/eslint and refactor some functions to make use of reduce/filter/forEach 
cleanup/eslint and refactor some functions to make use of reduce/filter/forEach 
bookbottles/ui-calendar,bookbottles/ui-calendar,angular-ui/ui-calendar,angular-ui/ui-calendar