JS cleanup from ID changes