simple XMLHttpRequest wrapper for purescript.