Replaced __proto__ with Object.getPrototypeOf()