couple minor fixes

- the reply from i3 can be an array (with > 1 entries) or an object.
- fixed typo and missing argument on index.js