Added isXmlHttpRequest