Added browser base64 shim (btoa/atob)