Update commands.js

rollback change for pan