Removed unnecessary funtion wrappers in node.js code