Dynamic menus linked to highcharts.js