Conway's Game Of Life javascript