Replace spans with divs