Highcharts fails when it is initialized in a different context