Setup copy to clipboard using JavaScript