node.js module refactoring
add command-line argument