A tiny ender-wrapper around XMLHttpRequest.