Fixing `SYNTAX_ERR: DOM Exception 12` in Safari

It is due to the fact `xhr.responseType = 'json'` is not supported.