I'm trying to copy Object class and then modify prototype of the new copied class. However, changes to new class prototype gets reflected to original Object class. Example:
var MyClass = Object;
MyClass.prototype.doSomething = function() {...};
Object.prototype.doSomething(); //it gets reflected to original object
Is there some way to copy a class without that annoying reflection (I know that sometimes it is a good thing, but right now, I just need to get rid of it)?