I think jshint yelled at me for doing it the other way, but in general, the reason is that you can't do `function foo() {}` at anything but the top-level scope of the function. It's safe here, though.