class Header extends HTMLElement { constructor() { super(); let pageTitle = this.getAttribute("data-title"); this.innerHTML = `

${pageTitle}

`; } } customElements.define("jl-header", Header);