fix caching of styles

If you choose to go with option 2 that I listed in #32, this is the PR.
`__proto__` is an anti-pattern and deprecated. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto