Added feature detection for fallback to XDomainRequest