Insert html before the head tag (not in or between them) using JavaScript
<p>I need to insert a comment before the html tag and before the doctype tag (if present) like..</p>

<pre><code>&lt;!-- HelloWord --&gt;
</code></pre>

<p>From a previous quest the following code did the job where an attribute was to be inserted "inside" a tag, however this quest is different...</p>

<pre><code>document.getElementsByTagName("html")[0].setAttribute("id", "something");
</code></pre>

<p>How to insert "before" the nominated tag? </p>
