Work around classList api incompatibiliy