minor require cleanups and reduce the stack for onJSONLoaded