Port cilantro/ui/controls/* to JavaScript

Signed-off-by: Don Naegely <naegelyd@gmail.com>
No reason to be a function, just defined `modelEvents` as an object directly.