DOM Manipulating a list of CSS classes