Utilities to extend JS objects: copy, merge, clone