Update mathChart.js