JavaScript Base64 Decode

Use atob() for ASCII Base64 in the browser, then use Uint8Array and TextDecoder when decoded bytes may contain Unicode text.