A connect shim for the browser