ES6 syntax nit: 

```js
return function(...args) {
  var payload = [id, ...args];
```

(assuming you want to use ES6 syntax, based on this comment: https://github.com/mozilla-b2g/gaia/pull/13055/files#diff-6cdce1b87ff330a97002f9fa398ccb09R14)