Fixed bug in node.js scripts