js ordering for global config