 
             eventHtml = $ '<a></a>',
                 href: '#'
-                'data-event': events.id
+                'data-event': events._id
                 html: eventContent
 
             if length is 0

        eventDate = "#{fullDate.month} #{fullDate.date}, #{fullDate.year}"

        eventFrequency = do ->
            recurrance = events.recurrance
            if recurrance is 'yearly' and events.dayNum?
                "Every #{events.dayNum} #{events.day} of #{events.month}"
            else if recurrance is 'yearly'
                "Every #{events.eventDate} of #{events.month}"
            else if recurrance is 'monthly'
                "Every #{events.dayNum} #{events.day} of the month"
            else if recurrance is 'biweekly'
                "Every other #{events.day}"
            else if recurrance is 'weekly'
                "Every #{events.day}"
            else if recurrance is 'daily'
                "Every Day"
            else
                "One Time Event"


    getWeekNum: (dayNum, day, currentMonth, currentYear) =>
        # gets the week of the month which an event occurs
        calendarInner = @calendar.find "div.#{@calendarInnerClass}"
        weeks = calendarInner.find '.drm-week'
        firstDay = @getDayOfWeek currentMonth, 1, currentYear
        dayShift = if firstDay is @daysPerWeek then 0 else firstDay
        numberWeeks = @getWeeksInMonth currentMonth, currentYear
        lastWeekLength = weeks.eq(numberWeeks).length

        if dayNum is 'last' and dayShift <= day
