Data Ajax: Added support for  CORS and a fallback when CORS isn't supported