Made the game of life in javascript