scripts updated for amcharts