Update cli.js

updates for improving code-climate