Conway's Game of Life example in Javascript