game of life2 implemented in node.js; output in console.