fixes BigInteger in browser

Thanks @dcousens!