Overriding xmlhttprequest open to tamper with requests in JavaScript apps
From http://stackoverflow.com/questions/7775767/javascript-overriding-xmlhttprequest-open