Improve the commandJS interface and prevent it from being executed when the module is loaded with require.