added client side base64 utils