Clean up highcharts code