A number of projects have sprung up to facilitate componentization of the web.
They emulate the proposed standards to push the web faster toward Web Components.
<paper-dialog heading="Title for dialog">
... dialog content ...
... dialog buttons ...
</paper-dialog>
A component encapsulates it's functionality and default styling. No instance initialization, registration or execution is needed for default behavior.
For built components, nothing more than using the element should be required.
<div class="lds-dialog">
... dialog content ...
... dialog buttons ...
</div>