title: Getting TypeError : h.has is not a function error
body: <p>I am trying to test backbone.js , however, I am getting <code>TypeError : h.has is not a function</code> error. My HTML Code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;My Theater&lt;/h1&gt;
      &lt;div id="mainContainer"&gt;&lt;/div&gt;
     &lt;input type="text" value="Enter HashTag" id="hashtag" /&gt;
       &lt;script type="text/template" id="tmplt-Tweets"&gt;
              &lt;ul&gt;
              &lt;/ul&gt;
      &lt;/script&gt;
      &lt;script type="text/template" id="tmplt-Tweet"&gt;
              &lt;div&gt;*******************************************************&lt;/div&gt;
              &lt;div&gt;&lt;%= url %&gt; &lt;/div&gt;
              &lt;div&gt;&lt;%= text %&gt; &lt;/div&gt;
              &lt;div&gt;&lt;%= html %&gt; &lt;/div&gt;
              &lt;div&gt;&lt;%= date %&gt; &lt;/div&gt;
              &lt;div&gt;&lt;%= id %&gt; &lt;/div&gt;
              &lt;div&gt;&lt;%= img %&gt; &lt;/div&gt;
              &lt;div&gt;&lt;%= name %&gt; &lt;/div&gt;
              &lt;div&gt;&lt;%= rt %&gt; &lt;/div&gt;
      &lt;/script&gt;
      &lt;script src="scripts/libs/jquery-1.7.1.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="scripts/libs/underscore.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="scripts/libs/backbone-min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="scripts/main.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>BackBone code:</p>
  
  <pre><code>/// &lt;reference path="../../scripts/libs/jquery-1.7.1.js" /&gt;
  /// &lt;reference path="../../scripts/libs/underscore.js" /&gt;
  /// &lt;reference path="../../scripts/libs/backbone-min.js" /&gt;
  var Tweet = {
      Models: {},
      Collections: {},
      Views: {},
      Templates:{}
  }
  Tweet.Models.Movie = Backbone.Model.extend({})
  Tweet.Collections.Movies = Backbone.Collection.extend({
      model: Tweet.Models.Movie,
      initialize: function(){
          console.log("No Tweets Yet")
      }
  });
   Tweet.Templates.movies = _.template($("#tmplt-Tweets").html())
  Tweet.Views.Movies = Backbone.View.extend({
      el: $("#mainContainer"),
      template: Tweet.Templates.movies,
      //collection: new Theater.Collections.Movies(), //Not needed
      initialize: function () {
          //_.bindAll(this, "render", "addOne", "addAll");
          this.collection.bind("reset", this.render, this);
          this.collection.bind("add", this.addOne, this);
      },
      render: function () {
          console.log("render")
          console.log(this.collection.length);
          $(this.el).html(this.template());
          this.addAll();
      },
      addAll: function () {
          console.log("addAll")
          this.collection.each(this.addOne);
      },
      addOne: function (model) {
          console.log("addOne")
          view = new Tweet.Views.Movie({ model: model });
          $("ul", this.el).append(view.render());
      }
  })
   Tweet.Templates.movie = _.template($("#tmplt-Tweet").html())
  Tweet.Views.Movie = Backbone.View.extend({
      tagName: "li",
      template: Tweet.Templates.movie,
      //events: { "click .delete": "test" },
      initialize: function () {
          //_.bindAll(this, 'render', 'test');
          this.model.bind('destroy', this.destroyItem, this);
          this.model.bind('remove', this.removeItem, this);
      },
      render: function () {
          return $(this.el).append(this.template(this.model.toJSON())) ;
      },
      removeItem: function (model) {
          console.log("Remove - " + model.get("Name"))
          this.remove();
      }
  })
  Tweet.Router = Backbone.Router.extend({
      routes: {
          "": "http://localhost/assignment/index.php"  //http://localhost:22257/Theater/theater.htm
      },
      defaultRoute: function () {
          console.log("defaultRoute");
          Tweet.movies = new Tweet.Collections.Movies()
          new Tweet.Views.Movies({ collection: Tweet.movies }); //Add this line
          Tweet.movies.fetch();
          console.log(Tweet.movies.length)
      }
  })
  var appRouter = new Tweet.Router();
  Backbone.history.start();
  </code></pre>
  
  <p>Any idea? Thanks</p>