Created functions for modifying classes on DOM elements.
Trying to make client-side js more orthogonal/modular.