Sample code for node.js