A simple clone function that also allows you to pass an "extend" object whose properties will be added to the cloned copy of the original object passed.
Optional
A simple clone function that also allows you to pass an "extend" object whose properties will be added to the cloned copy of the original object passed.