fixing chaining - must load config.js, require.js, appconfig.js, then everything else since appconfig.js has the information to define the dependencies