Adding node.js functions