fix definition of public methods on Object prototype instead of Object itself