Added utility functions for checking and changing DOM element class names