Javascript CLI implementation