Conway's Game of Life in JavaScript and Canvas