Add classList alternative for modern browsers