logging data to node.js