A JS implementation of the game of life