base64 component that mimicks window.{atob,btoa}