A polyfill for base64 functions atob and btoa