updated copy-text JS