Update command.js

Uncommented working code, removed static test variable