refactoring KuduExec.js