Prefer XMLHttpRequest over XDomainRequest

XDomainRequest is long deprecated and not recommended.

http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx

https://developer.mozilla.org/en-US/docs/Web/API/XDomainRequest