Highchart made compatible with earlier php