title: Getting the first element from <body> then insertBefore()
body: <p>I've been at this for a few hours now and am about to start ripping hair out. Basically what I need to do is get the first element that appears in the body and then insert another element before it.</p>
  
  <p>I've tried the following to get the first element with no success (undefined or null)</p>
  
  <pre><code>window.document.body.firstChild
  
  document.getElementsByTagName("body").firstChild
  
  document.getElementsByTagName("body")[0].firstChild
  
  window.document.documentElement.childNodes[1].childNodes[0]
  </code></pre>
  
  <p>And a whole slew of mixed and matched attempts of the previous snippets. I've also tried just getting the body then appendChild() with no success either.</p>
  
  <p>Any help here is appreciated. Thanks in advance.</p>