Cellular automata simulation modules in JavaScript