Fix JS for cloning on select