Use Object.getPrototypeOf instead of __proto__, latter doesn't work in IE