docs: function(callback, nowait) {
      var self = this;
      var loadWait = function() {
        setTimeout(function() {
          self.waitForPage(callback, true);
        }, 100);
      };
      if (nowait) {
        if (loading) {
          loadWait();
        }
        else {
          getPage(function(page) {
            page.evaluate(function() {
              return jQuery.isReady;
            }, function(ready) {
              if (ready) {
                callback.call(self);
              }
              else {
                loadWait();
              }
            });
          });
        }
      }
      else {
        loadWait();
      }
    }