update some js for charts