JavaScript implementation of the Game of Life