convert to node.js app