handle alternating rows with javascript