Standalone class manipulation API for HTML5 and legacy DOM