Replace id and index attributes by data-resultid and data-teamid