With RequireJS, this function will not be global (even for any other JavaScript that happens to be loaded on that page), right? I guess that as a style, I would rather this function be declared as a local variable like the rest of the functions.

While you are in here, might as well indent the code properly, since the diff is already impossible. :)