Make ShadowDOM visualizer work better with non WebKit implementations

This work is to allow the polyfill to work.
Merge pull request #6 from arv/de-webkit-ify

Make ShadowDOM visualizer work better with non WebKit implementations