Start to suss out javascript loops, slightly edit html