added js function nuOnClone()