cleaned up a lot of unused code in chart.min.js