Conway's Game of Life implemented in JavaScript