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