This w3schools article suggests using document.execCommand() to copy to a user\'s clipboard. However the MDN says that execCommand has been deprecated. Is there a preferable way