code: function () {
  
        $('<table class="jqs-table"><tr></tr></table>').appendTo($(this.element));
  
        for (var i = 0; i < this.settings.days; i++) {
          $('<td><div class="jqs-day"></div></td>').
            appendTo($('.jqs-table tr', this.element));
        }
  
        $('<div class="jqs-grid"><div class="jqs-grid-head"></div></div>').appendTo($(this.element));
  
        for (var j = 0; j < 25; j++) {
          $('<div class="jqs-grid-line"><div class="jqs-grid-hour">' + this.formatHour(j) + '</div></div>').
            appendTo($('.jqs-grid', this.element));
        }
  
        var dayRemove = '';
        var dayDuplicate = '';
        if (this.settings.mode === 'edit') {
          dayRemove = '<div class="jqs-day-remove" title="' + this.settings.periodRemoveButton + '"></div>';
          dayDuplicate = '<div class="jqs-day-duplicate" title="' + this.settings.periodDuplicateButton +
            '"></div>';
        }
  
        for (var k = 0; k < this.settings.days; k++) {
          $('<div class="jqs-grid-day">' + this.settings.daysList[k] + dayRemove + dayDuplicate + '</div>').
            appendTo($('.jqs-grid-head', this.element));
        }
      }
docs: Generate schedule structure