title: Javascript runnning only in debug mode
body: <p>I have this function in my <code>script.js</code> file:</p>
  
  <pre><code>function loadMarqueeHTMLs(){
      $("#voiceInteractions").load("xmlTest1A.html");
      $("#nonvoiceInteractions").load("xmlTest1B.html");
      var voiceintelements = $("#voiceInteractions").find(".value");
      alert("Before each"); // this alert runs
      voiceintelements.each(function() {
          alert($(this).attr('id')); // this alert DOESN'T run
          switch ($(this).attr('id')) {
              case "intsWaiting":
                  alert("inside intsWaiting"); // this alert DOESN'T run
                  break;
              default:
                  break;
          }
      });
  }
  </code></pre>
  
  <p>The <code>alert()</code> before the <code>each</code> runs, but the other 2 don't run.
  Unless, I run it in debug mode (Firefox) in which everything runs as expected. 
  While in debug mode, I see that <code>voiceintelements</code> has the correct selection of elements and how <code>each</code> properly loops through them.</p>
  
  <p>In case it helps, this is how I call the <code>loadMarqueeHTMLs</code> function from my <code>index.html</code>file:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
      loadMarqueeHTMLs();
  });
  &lt;/script&gt;
  </code></pre>