Changed commands.js to address deopts in v8