ujs.arrayClone() function implemented