Wolfram codes and elementary cellular automata in JavaScript