Javascript class which facilitates work with the DOM