title: when i make a template i got this "Cannot call method 'replace' of null"
body: <p>template code</p>
  
  <pre><code>&lt;script type="text/template" id="test-template"&gt;
      &lt;section&gt;
  
          &lt;form id="&lt;%= pid %&gt;"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="span16"&gt;
                      &lt;p&gt;
                          &lt;input type="radio" checked name="text-align" id="" value="tal" /&gt;
                          &lt;span&gt;标题靠左&lt;/span&gt;
                          &lt;input type="radio" name="text-align" id="" value="tac" /&gt;
                          &lt;span&gt;标题居中&lt;/span&gt;
                          &lt;input type="radio" name="text-align" id="" value="tar" /&gt;
                          &lt;span&gt;标题靠右&lt;/span&gt;
                      &lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="row"&gt;
                  &lt;div class="span16"&gt;
                      &lt;p&gt;&lt;input type="text" name="title" class="span10" placeholder="标题" value="&lt;%= title %&gt;" /&gt;&lt;/p&gt;
                      &lt;p&gt;&lt;textarea name="content" class="span14" placeholder="内容" rows="10"&gt;&lt;%= content %&gt;&lt;/textarea&gt;&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="row"&gt;
                  &lt;div class="span8"&gt;
                      &lt;p&gt;&lt;input type="text" name="data-x" placeholder="X 轴" value="&lt;%= data_x %&gt;" /&gt;&lt;/p&gt;
                      &lt;p&gt;&lt;input type="text" name="data-y" placeholder="Y 轴" value="&lt;%= data_y %&gt;" /&gt;&lt;/p&gt;
                      &lt;p&gt;&lt;input type="text" name="data-z" placeholder="Z 轴" value="&lt;%= data_z %&gt;" /&gt;&lt;/p&gt;
                  &lt;/div&gt;
  
                  &lt;div class="span8"&gt;
                      &lt;p&gt;&lt;input type="text" name="data-rotate-x" placeholder="X 轴旋转" value="&lt;%= data_rotate_x %&gt;" /&gt;&lt;/p&gt;
                      &lt;p&gt;&lt;input type="text" name="data-rotate-y" placeholder="Y 轴旋转" value="&lt;%= data_rotate_y %&gt;" /&gt;&lt;/p&gt;
                      &lt;p&gt;&lt;input type="text" name="data-rotate-z" placeholder="Z 轴旋转" value="&lt;%= data_rotate_z %&gt;" /&gt;&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="row"&gt;
                  &lt;div class="span8"&gt;
                      &lt;p&gt;&lt;input type="text" name="data-scale" placeholder="缩放" value="&lt;%= data_scale %&gt;" /&gt;&lt;/p&gt;
                  &lt;/div&gt;
  
                  &lt;div class="span8"&gt;
                      &lt;p&gt;&lt;input type="text" name="data-rotate" placeholder="旋转" value="&lt;%= data_rotate %&gt;" /&gt;&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="row"&gt;
                  &lt;div class="span16"&gt;
                      &lt;input type="hidden" value="&lt;%= title_align %&gt;" /&gt;
                      &lt;input type="submit" class="btn" value="提交" /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/section&gt;
  &lt;/script&gt;
  
  (function($) {
  window.Step = Backbone.Model.extend({});
  
  window.Steps = Backbone.Collection.extend({
      model: Step,
      url: MyAjax.ajaxurl + "?action=query-homepage-step",
        initialize: function() {
          this.fetch();
        }
  });
  
  window.StepListView = Backbone.View.extend({
      el: $('#steplist'),
      initialize: function() {
          this.model.bind("reset", this.render, this);
      },
      render: function( eventName ) {
          _.each( this.model.models, function( step ) {
              $( this.el ).append( new StepView({ model: step }).render().el );
          }, this );
          return this;
      }
  });
  
  window.StepView = Backbone.View.extend({
  
      template: _.template( $('#test-template').html() ),
      initialize: function() {
          this.model.bind( 'change', this.render, this );
      },
  
      render: function( eventName ) {
          $( this.el ).html( this.template( this.model.toJSON() ) );
          return this;
      }
  });
  
  window. AppRouter = Backbone.Router.extend({
      routes: {
          "": "init"
      },
  
      init: function() {
          console.log('init');
          this.steps = new Steps();
          this.stepView = new StepView({ model: this.steps });
          this.steps.fetch();
      }
  });
  })(jQuery);
  </code></pre>
  
  <p>what's wrong with it ?
  i already make a template called <code>$('#test-template')</code> in page and pass all <code>&lt;%= var %&gt;</code> correctly?</p>
  
  <pre><code>Uncaught TypeError: Cannot call method 'replace' of null
  b.templateunderscore-min.js:28
  (anonymous function)stepmakerapp.js:27
  (anonymous function)
  </code></pre>
  
  <p>sandbox is here <a href="http://zhanghong.sinaapp.com/make-homepage" rel="nofollow">http://zhanghong.sinaapp.com/make-homepage</a></p>