Right prototype of instance should probably be `engine.Constructors.X.PrototypeObject` where `X` is the name of the class. Also there are some other subtle issues that should be taken into account. They will be listed here, if applicable.