Start using document.registerElement() to add functionality to custom elements.