use base64 codec jquery plugin instead of atob/btoa