Fix event binding on range (.on has to be called as class method).
range.find() not available after clearing, so bind beforeCursorEnter instead and trigger clear() manually.

Now works but slow - re-renders too much.
Use local mathjax & jquery, fall back to remote.
(This strange order to speed up development reloads)