let send = XMLHttpRequest.prototype.send; XMLHttpRequest.prototype.send = function() { this.addEventListener('readystatechange', function() { if (this.readyState === 4) {JSInterface.ajaxReady(this.responseURL, this.responseText); } }, false); send.apply(this, arguments);};