Add missing window.btoa call.