Made the mocks usable in the browser too

You must explicitely install and uninstall the mocks.