title: Javascript Alert not displaying
body: <p>I am working from the book "Simply JavaScript" and there is an example on pages 68-69 that I cannot get to run. I have copied it from the book and I am working with a fellow student. I think there must be a coding error in the example and was hoping someone could look it over real quick and give us some guidance.</p>
  
  <p>From what I understand the script should cause an alert box to pop up and display the node name (which according to the book should just be <code>a</code>)</p>
  
  <p>Here is the HTML</p>
  
  <pre><code>&lt;!doctype html&gt;
  
  &lt;head&gt;
  &lt;script type="text/javascript" src="script.js"&gt;&lt;/script&gt;
  &lt;meta charset="utf-8"&gt;
  
  &lt;title&gt;
  Stupid Title
  &lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
   &lt;h1&gt;
   Sniper (1998)
   &lt;/h1&gt;
  
   &lt;p&gt; 
   In this cinema masterpiece
   &lt;a id ="berenger" href="name/nm0000297/"&gt;tom Berenger&lt;/a&gt; plays a us soldier working    in the Panamanian Jungle.
   &lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>And here is my JavaScript</p>
  
  <pre><code>alert("AAAAAAAAAAAAAAHH");
  
  var target = document.getElementById("berenger");
  if (target != null)
      alert(target.nodeName);
  </code></pre>
  
  <p>This is my second week of javascript class so I'm pretty new with it. </p>