passing in info to highcharts working, cleaned code