Simplify the css classList loop