Changes html in script from a row to a structured one.