Javascript version of John Conway's Game of Life