bleDate = new Date(firstOfMonthDate - dowFirstOfMonth * DAY_MILLIS);
  var date = firstVisibleDate;
  var week = 0;
  while (++week < 10) {
    var $weekRow = $('<tr>').appendTo($table);
    for (var dow = 0; dow < 7; dow++) {
      // basic cell setup
      var $dayCell = $('<td>')
          .addClass('day')
          .attr('width', '14%')
          .appendTo($weekRow);

      var dayKey = Math.floor(date / 1000);
      $dayCell.attr('id', 'day-' + dayKey);

      var dayMonth = date.getUTCMonth();
      v