Added new command.js interface