Transform html so that all ids are unique