Revert "Revert "Update commands.js""

This reverts commit 474a675b6d380dce87b68eb511c61db875575626.