change classList to handle multiple class-names modifications