fix loading sequence of highcharts which caused JS error, also fix indentation