Mathematica and javascript code used in the post on cave generation via cellular automata