add ajax integrated base64 decoding function.