How about:

var p = {prototype: newPrototype};
if (object.extends)
  p.extend  = object.extends;