Modified Window.firePluginAdded() method