add XDomainRequest to browser env