you can inject window by 'wikia.window' module

and
can't it be a module as well