A fake XMLHttpRequest object for testing in browsers