anchor.diff:      add : function(card) {
         var card_entry = this.entries[card.code]
         if(!card_entry) {
  -        card_entry = this.entries[card.code] = {card : $.extend({}, card), count : 0}
  +        card_entry = this.entries[card.code] = {card : $.extend({}, card), amount : 0}
         } 
  -      card_entry.count += 1
  +      card_entry.amount += 1
         return card_entry
       },
       remove : function(code) {
  -      var card_entry = this.entries[code]
  -      if(card_entry) {
  -        card_entry.deck_mount -= 1
  -        if(card_entry.deck_amount <= 0) {
  -          delete this.entries[code]
  -        }
  -      }
  +      delete this.entries[code]
       },
       cost : function() {
         return  _.reduce(this.entries, function(memo, card_entry) {
  -        return memo + card_entry.count * card_entry.card.cost()
  +        return memo + card_entry.amount * card_entry.card.cost()
         }, 0)
       }
     }
  -
   
     $('#mage_select').one('change', 'input', function() {
   
  
positive.code:   }, 2000))
  
    var buildCards = function() {
       return _.flatten(_.map($('#deck_table tbody tr'), function(tr, i) {
         var card = $(tr).data('card')
         var base = 'deck[deck_cards_attributes][]'
         return [
           $('<input type="hidden"/>').attr('name', base + '[card_code]').attr('value', card.code),
           $('<input type="hidden"/>').attr('name', base + '[amount]').attr('value', card.deck_amount)
         ]
       }))
    }
  
negative.code:     })
    })
  
    $('#mage_select input').change(updateAll)
  
    var showCard = _.throttle(function(card) {
      $('<img></img>').attr('src', '/assets/' + card.code + '.jpg').appendTo($('#card_holder').empty()) 
    }, 1000)
  
    $('#card_list_table').on('click', 'tbody tr button', function() {
      var listTr = $(this).closest('tr')
      var listCard = listTr.data('card')
      var card_entry = deck.add(listCard)
      var deckTr = getDeckTr(listCard.code)
      if(deckTr.length == 0) {
        deckTable.dataTable().fnAddData(listCard)
        deckTr = getDeckTr(listCard.code)
      }
      updateDeckTr(deckTr)
      updateTotalDeckCost()
    })
  
    $('#card_list_table, #deck_table').on('click', 'tbody tr a.card_href', function() {
  