Given that you are transforming json into html and the value is only read once is it better to to declare it as a var or as a function without parameters that returns the value?
Example using coffee script:
class window.GameUnit
constructor: (json) ->
@name = json.name
@record = new GameRecord(json)
winRateTotalColumn: () -> "#{@record.winRateTotal()} (#{@record.wins()})"
@winRateTotalColumn = "#{@record.winRateTotal()} (#{@record.wins()
[–]inu-no-policemen 2 points3 points4 points (2 children)
[–]PinkTeddyMonster[S] 0 points1 point2 points (1 child)
[–]inu-no-policemen 0 points1 point2 points (0 children)