This demo illustrates how to create a new Button custom element with javascript and append it to the DOM.
Click Me