Javascript based Conway's game of life simulator