Updating shell.js - modifiying argument object to array