Switch to using className vs. classList for better backwards compatibility.