DOM manipulation and updating

updating a list via traversing the DOM