Yeah, I eventually realized the thing about not being 64 encoded, so my attempt was to fix it in the javascript, I had removed the atob and replaced with various outher attempts, to no avail.
Fixing it on the other side (your suggestion) hadn’t occurred to me…eureka…it worked !!!
thanks much