Yeah, true makes it equivalent to deepcopy. http://api.jquery.com/jQuery.extend/ Is there a more idiomatic way to do a clone in JavaScript?  Agree that setting refCount = 1 explicitly could be clearer.