move commandjs to connector.js