D3.js Game of Life Implementation