Fix to ScriptInjector so it will inject into the top window (needed for $wnd calls)