add shim for xmlhttprequest when not present