Support XMLHttpRequest as a module