jQuery.extend(true, Object, Object) copies custom objects correctly.