JS framework for working with CSS classes of DOM elements