- Porting the code to node.js