Note that when you copy an element, all references that this element has to other elements will stay the same. So for example, if you copy a script that uses a dataset, both your original element and the copied element will point to the same dataset. Therefore, if you change the dataset, both your original script and the copied one may need to be changed.