debug with mathChart.js