best effort to support ie7
no if statements in class list function for better performance