 CharacterFacts = require './character_facts'
 
 dom = React.DOM
-
-source_json = './sampledata/null_pvp.json'
 
 samples = [
   'dscan.json'

    speedOfLightAu = speedKmPerS / 149597871
    totalAu = @props.distance
    travelSeconds = totalAu / speedOfLightAu
    lightSpeedYears = Intl.NumberFormat().format(Math.round(travelSeconds / 60 / 60 / 24/ 365))
    distanceText = "#{@state.vehicle.name} would take #{lightSpeedYears} years to cover your total distance travelled."
    dom.h4 {className: 'pull-right'}, dom.em(null,distanceText)
)

        name: 'Bellatroix'
        id: 1412571394
      year: 2014
    }
  componentDidMount: ->
    @loadData()
  loadData: ->
    source = _.sample samples
    $.get "./sampledata/#{source}", (data) =>
      stats = new CharacterStats(data)
      @setState {stats: stats, year: data.aggregateYear}
  render: ->
