title: coffeescript: suppress "ReferenceError"
body: <p>Currently working through <a href="http://adamjspooner.github.io/coffeescript-meet-backbonejs/" rel="nofollow">this</a> tutorial on using Backbone.js with coffeescript.</p>
  
  <p>Leveraging the following <code>index.html</code> file:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;CoffeeScript, Meet Backbone.js: Part N&lt;/title&gt;
    &lt;link rel="stylesheet" href="style.css"&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"&gt;&lt;/script&gt;
    &lt;script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.6/underscore-min.js"&gt;&lt;/script&gt;
    &lt;script src="http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="./index.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
    &lt;header&gt;
      &lt;h1&gt;CoffeeScript, Meet Backbone.js: Part 1&lt;/h1&gt;
    &lt;/header&gt;
  &lt;/body&gt;
  
  
  &lt;/html&gt;
  </code></pre>
  
  <p>which loads an <code>index.js</code> file after loading Backbone, jQuery, etc from a cdn. Hoping to work within a <code>script.coffee</code> file that I'd like to have automatically compile into the <code>script.js</code> file loaded by <code>index.html</code> above by running something like <code>coffee script.coffee -c -w.</code> </p>
  
  <p>Trouble is, I'm getting <code>ReferenceError</code>s  when I try to run the above command on the following <code>script.coffee</code> file:</p>
  
  <pre><code>jQuery -&gt;
  
    class ListView extends Backbone.View
  
      el: $ 'body'
  
      initialize: -&gt;
  
        _.bindAll @
        @render()
  
      render: -&gt;
        $(@el).append '&lt;ul&gt;&lt;li&gt;Hello, Backbone!&lt;/li&gt;&lt;/ul&gt;'
  
    list_view = new ListView
  </code></pre>
  
  <p>For instance:</p>
  
  <pre><code>ReferenceError: jQuery is not defined
  ...
  </code></pre>
  
  <p>because, clearly, jQuery is being loaded in the <code>index.html</code> file.</p>
  
  <p>Is there a way to suppress the error reporting from the coffeescript compiler so that it just converts the code without the error?</p>