Javascript implementation for recoloring highcharts