added console object for node.js