anchor.diff:          var templ = new Template(
           "<li class='element element_#{unique_id}'>"+
             "<input type='hidden' name='#{field_name}[#{field}_ids][#{unique_id}][id]' value='#{id}' />"+
  -          "<input type='hidden' name='#{field_name}[#{field}_ids][#{unique_id}][position]' value='' />"+
  +          "<input type='hidden' class='position' name='#{field_name}[#{field}_ids][#{unique_id}][position]' value='' />"+
             "<a class='handle'>handle</a>"+
             "<h4>#{asset_name}</h4>" +
             "<img src='#{thumb}' alt='#{asset_name}'/>" +
  
positive.code:           name: name.gsub('"', "&quot;").gsub("'","&#39;"),
            asset_name: asset_name,
            field_name: this.fields[counter]['name']
          }));
          var set_positions = function() {
            $$('#media_selector_'+counter+' li.element').each(function(el, i) {
              el.select('input[name*="][position]"]').first().value = i+1;
  
negative.code:       },
  
        //Deletes a selected element from a media field
        //and returns current position before removing it
        delete_element: function(field, counter, unique_id){
          var parent = $('media_selector_'+ counter).select(".element_"+unique_id).first();
          var position = parent.select(".position").first().value;
          parent.remove();
          this.fields[counter]['size']--;
          this.reload(field, counter);
          return position;
        },
  
        //Hides or show 'add' and 'search' links (and inner content)
  