glob replace .attr("class") with .addClass to preserve preexisting classes