So IMO we just need to
```js
return {
  onsuccess: function() {},
  onerror: function() {}
};
```
here.