You can replace all of this with 

```javascript
event.params[1] = comicId;
this.commands['~xkcd'](event);
```