Cache window.ShadowDOMPolyfill value in closures

This avoids unnecessary references properties on window, which are
slow to look up.
Merge pull request #64 from ajklein/avoid-window-references

Cache window.ShadowDOMPolyfill value in closures