Are we guaranteed that `YUI_config` will be setup? Maybe it should also reference it from `window`?