Refactor and optimize RequireJS configuration

Switched to an alternate pattern that works correctly with both jQuery as the infrastructure compiler, and when
the JavaScript on the page has been aggregated. Without thing change, RequireJS can sometimes attempt to load
a module before it has been configured.
5 files changed