highcharts: add support for js functions
update hPlot