                     class: 'drm-calendar-header'
                     text: "#{self.months[newDate.month]} #{_weekDates}: Week #{weekNumber} of #{newDate.year}"
                 
-                _calendar.appendTo ".#{self.calendarClass}"
-                _heading.prependTo "div.#{self.calendarInnerClass}"
+                _calendar.appendTo calendar
+                _heading.prependTo calendar.find(".#{self.calendarInnerClass}")
 
                 $("div.#{self.calendarInnerClass}")
                     .find "tbody td[data-month=#{lastMonth}]"


        switch self.view
            when 'month' then views.createMonth newDate, calendar
            when 'week' then views.createWeek newDate
            when 'date' then views.createDate newDate

                addCalendar calendar

            createWeek: (newDate, calendar) ->
                weekdaysHtml = "<thead><tr><th></th>"
                $.each self.days, (key, value) ->
                    _dates = utilities.getDates datesInWeek, key
