Headless Qunit
Fix XHR errors

Need to open the request before setting attributes.
Merge pull request #108 from DieBuche/headlessQUnit

Headless Qunit