Refactor js in statistics.js.
Using common methods instead of those in StatisticsPlot.sales_orders.