Refer "prefs" instead of "window['...'].prefs" to load depending modules