xhr fix for Linux (xhr.response does not automatically parse the JSON)