altered node.js to work