update js to use new ids