use node-getopt to parse arguments. make jasmine test script work.