Got JSON and XML data to function but only when using Safari