Mathematica and javascript code used in the post "The Cellular Automaton Method for Procedural Cave Generation"