update js on data table