update js to get modal component id