updating html demo to handle base64 text