These are typically micro-optimizations.

This puts the function which are in the global scope into the local scope which saves on function calls.