Provide an XMLHttpRequest constructor if used in JS modules