Fixed plugins and events

Make sure each instance of the browser has its own set of plugins and events