A JavaScript implementation of Conway's game of life