Replace base64url with atob and btoa like way