IMHO I would like to avoid exposing the XMLHttpRequest to the world

```js

function RestRequest(xhr) {
      this.cancel = function oncancel() {
        setTimeout(xhr.abort, 0);
      }
}

var outReq = new RestRequest(xhr);

```