Added check for btoa() for Export button