Thanks to the E-Language mailing list for pointing me to this example of why JavaScript is a much more interesting language than you might think.