hooked up XDomainRequest event handlers and set up timeout to fix a abort bug