.innerHTML = <span class="hljs-keyword">this</span>.source();
  <span class="hljs-built_in">document</span>.head.appendChild(div);
}
</code></pre>
<p><img src="../../img/bundle-your-js-3.png" alt="Image Alt"></p>
<h2><a class="anchor" aria-hidden="true" id="create-a-js-component"></a><a href="#create-a-js-component" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69