Change use of __proto__ to Object.getPrototypeOf (former is ECMAScript 6 only).