title: uncaught TypeError: Cannot call method 'replace' of undefined backbone.js
body: <p>I 'm trying to develop a simple RSS app using backbone.js. I 'm using this backbone.js <a href="http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-2-crud/">tutorial</a>. I 'm getting the following error, on line 2(template), when defining the template. 
  Can someone also tell me why is tagName: "li" defined in the tutorial?</p>
  
  <blockquote>
    <p>uncaught TypeError: Cannot call method 'replace' of undefined
    backbone.js</p>
  </blockquote>
  
  <p><strong>Javscript</strong></p>
  
  <pre><code>window.SourceListView = Backbone.View.extend({
      tagName:"li",
      template: _.template($('#tmpl_sourcelist').html()),
  
      initialize:function () {
          this.model.bind("change", this.render, this);
          this.model.bind("destroy", this.close, this);
      },
  
      render:function (eventName) {
          $(this.$el).html(this.template(this.model.toJSON()));
          return this;
      },
  
      close:function () {
          $(this.el).unbind();
          $(this.el).remove();
      }
  });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code> &lt;script type="text/template" id="tmpl_sourcelist"&gt;
                          &lt;div id="source"&gt;
                          &lt;a href='#Source/&lt;%=id%&gt;'&lt;%=name%&gt;&lt;/a&gt;
                          &lt;/div&gt;
                  &lt;/script&gt;
  </code></pre>
  
  <p>thanks</p>