here's the full code. A 'Callback' tracks a single value and lets you subscribe for updates; all the HTML element wrappers know how to bind to those to set their attributes and children (the HTML helpers are all constructors for the same class with this basic logic)