Instead of touching the DOM twice, why not create the shadowRoot in created callback