A trio of functions to manipulate a DOM element's class attribute.