Updating return type documentation
Minor code simplification
Providing a better means of cloning JS objects