json: update node js tool to take in arguments from command line

no longer use hard coded values