Conway's Game of Life implemented in Javascript