The code from my Test Driven JavaScript talk