fixed cmdLine.js errors
converted to coffeescript