Calling private method from prototype method