title: Jasmine HtmlReporter calls itself, finds itself undefined
body: <p>I am testing a Backbone Marionette application. The test page consists of the following scripts:</p>
  
  <ul>
  <li>Jasmine: <code>&lt;script src="../testing/lib/jasmine-1.3.1/jasmine.js"&gt;&lt;/script&gt;</code></li>
  <li>Jasmine HTML reporter: <code>&lt;script src="../testing/lib/jasmine-1.3.1/jasmine-html.js"&gt;&lt;/script&gt;</code></li>
  <li>My spec: <code>&lt;script src="js/app.spec.js"&gt;&lt;/script&gt;</code></li>
  <li>Setup: window.onload code copied <a href="http://pivotal.github.io/jasmine/#section-27" rel="nofollow noreferrer">exactly from the Jasmine github page</a></li>
  </ul>
  
  <p>The odd part is, I keep getting this error:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'SuiteView' of undefined 
  </code></pre>
  
  <p>I looked at the stack trace. <code>jasmine.HtmlReporter</code> gets ready to output the test summary after all tests complete. It calls <code>jasmine.HtmlReporterHelpers.appendToSummary</code>, where <code>jasmine.HtmlReporter</code> is <code>undefined</code>, as shown in the screenshot below.</p>
  
  <p><img src="https://i.stack.imgur.com/hHggq.png" alt=" "></p>
  
  <p>An object method cannot find itself. How can this even happen?</p>