         day = self.getDayOfWeek newDate.month, newDate.date, newDate.year
 
         _highlightWeekends = ->
-            calendarInner = self.calendar.find "div.#{self.calendarInnerClass}"
-            weeks = calendarInner.find '.drm-week'
+            _calendarInner = self.calendar.find "div.#{self.calendarInnerClass}"
+            _weeks = _calendarInner.find '.drm-week'
             weekends = [0, 6]
 
-            $.each weeks, ->
+            $.each _weeks, ->
                 _that = $ @
                 $.each weekends, ->
-                    weekend = _that.find(".#{self.classes.date}[data-day=#{@}]")
+                    _weekend = _that.find(".#{self.classes.date}[data-day=#{@}]")
                         .not ".#{self.classes.muted}, .#{self.classes.today}, .#{self.classes.holiday}"
-                    weekend.addClass self.classes.weekend
+                    _weekend.addClass self.classes.weekend
 
         _highlightToday = ->
-            calendarInner = self.calendar.find "div.#{self.calendarInnerClass}"
-            month = calendarInner.data 'month'
-            year = calendarInner.data 'year'
-
-            if month is self.today.month and year is self.today.year
-                calendarInner.find(".drm-date[data-date=#{self.today.date}]")
+            _calendarInner = self.calendar.find "div.#{self.calendarInnerClass}"
+            _month = _calendarInner.data 'month'
+            _year = _calendarInner.data 'year'
+
+            if _month is self.today.month and _year is self.today.year
+                _calendarInner.find(".drm-date[data-date=#{self.today.date}]")
                     .addClass self.classes.today
 
         _createMonthView = (newDate) ->
             _addWeekNumbers = ->
-                weeks = self.calendar.find("div.#{self.calendarInnerClass}").find '.drm-week'
-
-                $.each weeks, ->
+                _weeks = self.calendar.find("div.#{self.calendarInnerClass}").find '.drm-week'
+
+                $.each _weeks, ->
                     _that = $ @
-                    firstDateInWeek = _that.find('.drm-date').first().data 'date'
-                    weekNumber = self.getWeekNumber newDate.month, firstDateInWeek, newDate.year
-
-                    if weekNumber % 2 is 0
+                    _firstDateInWeek = _that.find('.drm-date').first().data 'date'
+                    _weekNumber = self.getWeekNumber newDate.month, _firstDateInWeek, newDate.year
+
+                    if _weekNumber % 2 is 0
                         _that.addClass 'even-week'
                     else
                         _that.addClass 'odd-week'
 
-                    _that.attr 'data-week', weekNumber
+                    _that.attr 'data-week', _weekNumber
 
             # create html
             weekdays = '<table><thead><tr>'


            weekdaysHtml = "<thead><tr><th></th>"
            $.each self.days, (key, value) ->
                dates = _getDates datesInWeek, key
                weekdaysHtml += "<th>#{value}<br>#{self.months[dates.month]} #{dates.date}</th>"
            weekdaysHtml += '</tr></thead>'

            weekHtml = "<tbody class='#{self.classes.week} #{weekClass}' data-week='#{weekNumber}'>"
            $.each self.hours, ->
                hour = @name

                weekHtml += "<tr><td><span class='hour'>#{hour}</span></td>"
                $.each self.days, (key) ->
                    dates = _getDates datesInWeek, key
                    weekHtml += "<td class='#{self.classes.date}' data-month='#{dates.month}' data-date='#{dates.date}' 
                        data-year='#{newDate.year}' data-day='#{key}' data-hour='#{hour}'></td>"
                weekHtml += '</tr>'

            weekHtml += '</tbody>'

            weekView = $ '<table></table>',
                html: weekdaysHtml + weekHtml

            calendar = $ '<div></div>',
                class: self.calendarInnerClass
                html: weekView
                'data-month': newDate.month
                'data-year': newDate.year

            weekDates = if datesInWeek.length > 1
                    "#{datesInWeek[0]} - #{datesInWeek[datesInWeek.length - 1]}"
                else 
                    "#{datesInWeek[0]}"

            heading = $ '<h1></h1>',
                class: 'drm-calendar-header'
                text: "#{self.months[newDate.month]} #{weekDates}: Week #{weekNumber} of #{newDate.year}"
            
            calendar.appendTo ".#{self.calendarClass}"
            heading.prependTo "div.#{self.calendarInnerClass}"

            $("div.#{self.calendarInnerClass}")
                .find "tbody td[data-month=#{lastMonth}]"

            _addWeeklyEvents events, eventDates
        else if events.recurrance is 'daily'
            _addDailyEvents events, eventDates
        else if events.recurrance is 'none' and eventMonth is month and eventYear is parseInt(events.year, 10)                                         
            _addOneTimeEvents events, eventDates
        if eventDates.length > 0
            $.each eventDates, (key, date) ->
