Fix for Firefox compatibility

Setting responseType before open() fails on Firefox with:

9 InvalidStateError: An attempt was made to use an object that is not,
or is no longer, usable
Merge pull request #2 from deathcap/fix-firefox

Fix for Firefox compatibility