cleaned up some of the node.js script mess