Little example of the game of life using javascript