refactoring statisctics in item.rb, statistics/index.html.slim, charts.js.coffee