sorted out some highcharts javascript craziness with graph rendering