Remove references to XDomainRequest, which wasn't much use anyway
Rearranged some request setup for Ajax calls