code: function initCalendar() {
          var day = new Date()
            , dayOfWeek = day.getDay()
            , $today = $("g:last > .day").eq(dayOfWeek).attr("title", getDateTime(day))
            , $prevDaysInWeek = $today.prevAll(".day")
            , $prevWeeks = $today.parent().prevAll("g")
            , enabledDays = 1
            ;
  
          // add today and disabled classes
          $today.attr("class", function (index, classNames) {
              return classNames + " today";
          });
          $today.nextAll(".day").attr("class", function (index, classNames) {
              return classNames + " disabled";
          });
  
          var i = 0;
          // each day
          $prevDaysInWeek.each(function () {
  
              // get the current day
              day = new Date();
  
              // set its date
              day.setDate(day.getDate() - (i++) - 1);
  
              // add title attribute
              $(this).attr("title", getDateTime(day));
  
              ++enabledDays;
          });
  
          // each week
          $prevWeeks.each(function () {
  
              // get the days of this week
              var $daysInWeek = $(this).children(".day");
  
              // each day
              for (var i = $daysInWeek.length - 1; i >= 0; i--) {
  
                  // set the new date
                  day.setDate(day.getDate() - 1);
  
                  // today
                  if (day.getFullYear() < new Date().getFullYear()) {
                      $($daysInWeek[i]).attr("class", function (index, classNames) {
                          return classNames + " today";
                      });
                  }
  
                  // add title attribute
                  $daysInWeek.eq(i).attr("title", getDateTime(day));
  
                  // disable day
                  if (enabledDays >= 366) {
                      $daysInWeek[i].classList.add("disabled");
                  }
                  ++enabledDays;
              }
          });
      }
docs: /*!
  initCalendar
  Inits the calendar days.
  
  @name initCalendar
  @function
  @return {undefined}