Objects passing in node.js