Javascript cellular automata simulations