Game of life simulations with JS