Fixing navigator clipboard writeText transient activation Failures in Async JavaScript