added js function Base64