Added support for XMLHttpRequest and XDomainRequest.
Demo updated.