Building a Command Line Tool with Javascript