JavaScript versions of the code examples in "The Nature of Code".