JQuery CORS Helper with legacy fallback via XDM