Added full node.js code