anchor.diff:                dataType: 'json',
                 data: function (term) {
                   return { q: term};
  -               
  +
                 },
  -              results: function (data) { return data; } 
  +              results: function (data) { return data; }
               },
  -      createSearchChoice:function(term, data) { 
  -        if ($(data).filter(function() { 
  -          return this.text.localeCompare(term)===0; 
  +      createSearchChoice:function(term, data) {
  +        if ($(data).filter(function() {
  +          return this.text.localeCompare(term)===0;
           }).length===0) {return {id:term, text:term};} },
       }
     );
  
positive.code:     </div><!--/.well -->
    </div>
  
    <div class="col-lg-8">  
      <% if @params['form'] == 'true' %>
        <% checks = @params['checks'].split(',') %>
        <% metrics = @params['metrics'].split(',') %>
  
negative.code:           </div>
            <div class="row">
              <label class="col-lg-4" text-align="left">Y-Max</label>
              <input type="text" name="ymax" value="<%=@ymax if @ymax != 0 %>" class="col-lg-4"><br/>
            </div>
            <br>
          <input type="hidden" name="form" value="true">
  