node.js conversion