Random JavaScript code. Drawn from katas, text, and general experimentation.