defer detection of XHR

Ran into an issue with a tape-like pattern:

```
$ browserify-like-bundler tests/index.js | node
```

This package was detecting if the window object was present before my jsdom shim could execute (and therefore expose window/document globals). I deferred the execution of the detection until the first call to compensate.