Conway's Game of Life in JavaScript with d3.js