Replaces JSNOP callback with XmlHttpRequest