code: function execWaitReadyFunctions() {
      if (isReady()) {
          logger.info('Page is ready. Executing ' + callbacksOnReady.length + ' functions that are waiting.');
          for (var i = 0; i < callbacksOnReady.length; i++) {
              var callback = callbacksOnReady[i];
              callback();
          }
      }
  }
docs: Execute all the functions that are waiting for the page to finish loading