Match the spec properly

Fixes #1 and #2.
Please use Object.setPrototypeOf; `__proto__` is deprecated.