title: Errors in building a BackboneJS Event Collection - new Event() throws errors
body: <p>This seems pretty much as a standard use of a collection, but it doesnt work. I have the following code inside a document ready function:</p>
  
  <pre><code>$(function() {
    window.EventList = Backbone.Collection.extend({
      model: Event,
      url: '/events',
          parse: function(response) { // same result with or without parse function
        return _(response.rows).map(function(row) { return row.doc ;});
      }
    });         
    window.Events = new EventList;
    // throws Uncaught TypeError: Illegal constructor
    // Events.fetch();
  });
  </code></pre>
  
  <p>I've tested with Chromium and Firefox, FF is more verbose:</p>
  
  <pre><code>this.model is not a constructor at Backbone.js line:570
  [Break On This Error] model = new this.model(attrs, {collection: this}); 
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>As a sidenote, I'm trying to follow <a href="http://japhr.blogspot.com/2011/08/converting-to-backbonejs.html" rel="nofollow">Chris Storm's tutorial/chain</a> if you need a bit more context.</p>
  
  <p>Relevant Software Versions:</p>
  
  <ul>
  <li>jQuery JavaScript Library v1.7.1</li>
  <li>Backbone.js 0.5.3</li>
  <li>Underscore.js 1.2.2</li>
  <li>Chromium 14.0.835.202 (Developer Build 103287 Linux) Ubuntu 11.10</li>
  <li>Firefox is 8.0, Ubuntu 11.10, 64 bits</li>
  </ul>
  
  <p><strong>Update</strong>: a little more debugging and I find that at the point the error is thrown, this.model has the value <code>function Event() { [native code] }</code> and calling <code>new Event()</code> throws more errors - <code>TypeError</code>. So what's wrong with creating events?</p>