code: function fReadyStateChange(oRequest) {
          // Sniffing code
          if (cXMLHttpRequest.onreadystatechange)
              cXMLHttpRequest.onreadystatechange.apply(oRequest);
  
          // Fake event
          oRequest.dispatchEvent({
              'type':            "readystatechange",
              'bubbles':        false,
              'cancelable':    false,
              'timeStamp':    new Date + 0
          });
      }
docs: Helper function