Conway's Game of Life implementation in Node.js + D3.js