pure js browser game of life