CR for Job #20176 - Ability to clone Overlay in Javascript

Code Review for Job #20176 - Workitem available at https://www.worklist.net/20176
why not use copy constructor format for this?