Initialize window.{doc mod root} as soon as onLoaded callback