toolbars JS Class abstraction