I guess I didn't put in "use strict", but if I had that would prevent function statements that aren't at the top level.