Conway's Game of Life written in JavaScript