Safari fix, where .response returns JSON string, not object