anchor.diff:       return $('input[name="mage"]:checked').val()
     }
   
  -  var updateCardCost = function(card) {
  -     var costMap = mageMap[mage()]
  -     var costs =  _.map(card.levels, function(level_detail) {
  -        return level_detail.level * (card.novice ? 1 : costMap[level_detail.school_name])
  -     })
  -
  -     return (card.cost = (card.or_cost) ?  _.min(costs) : _.reduce(costs, function(memo, cost) { return memo + cost }, 0)) 
  -  }
  -
     var getUserDeckMaxes = function() {
        return {
          Core: parseInt($('#packs_container select[data-pack=Core]').val()),
  
positive.code: 
              $('#tables_container').show()
  
              $.each(data.entries, function(i, card) {
                updateCardCost(card)
              })
              fnCallback({
                iTotalRecords : data.total_entries,
                iTotalDisplayRecords : _.min([data.total_entries, data.per_page]),
                sEcho : data.echo,
                aaData : data.entries
              }, textStatus, jqXHR)
            }
          })
        }, 
        fnCreatedRow : function(tr, aData, iDataIndex) {
          var tr = $(tr)
          tr.data('card', aData).attr('data-code', aData.code)
          updateListCardMaxTr(tr)
        } 
      })
  
negative.code: 
    var updateDeckTr = function(tr) {
      var tr = $(tr)
      var card_entry = deck.get(tr.data('code'))
      var cost = card_entry.card.cost()
      $('td.cost', tr).text(cost) 
      $('td.total', tr).text(card_entry.amount * cost) 
    }
  
    var updateListTr = function(tr) {
      var tr = $(tr)
      var card = $(tr).data('card')
      $('td.cost', tr).text(card.cost())
    }
  
    var updateTotalDeckCost = function(start) {
  