Set responseType after opening the xhr request