Refactored to use highcharts scripts.