Stop crashing due to exception 'must provide array of arguments'
Merge pull request #9 from mathias/optional-arguments-js-api

Stop crashing due to exception 'must provide array of arguments' on api.runCommand()