$scope.previousMonth = function previousMonth() {
                if (!$scope.isLoading) {
                    $scope.isLoading = true;
                    var startDate = getCalendarFirstDayInMonth($scope.cal.calendar);
                    startDate.setMonth(startDate.getMonth() - 1);