smchanged js to match changed ids