set className if classList not available