Fix bug where change does not bubble up from directive.
Convert fronted to JS.

Let the debugging begin.
Yep, it works (minus graphs).