Port cilantro/ui/tables/* to JavaScript

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Actually, the last argument isn't needed anyway since the context will already be `this`.. so that may be short enough to fit on one line.