update js for line chart