docs: function(w, h, stage_elem) {
          // If necessary, attach any event handlers registered before Crafty started
          if (!this._preBindDone) {
              for (var i = 0; i < this._bindOnInit.length; i++) {
                  var preBind = this._bindOnInit[i];
                  Crafty.bind(preBind.event, preBind.handler);
              }
          }
  
          // The viewport will init things like the default graphics layers as well
          Crafty.viewport.init(w, h, stage_elem);
  
          //call all arbitrary functions attached to onload
          this.trigger("Load");
          this.timer.init();
  
          return this;
      }