moving browser stuff out of pyjx into pyjx-html5