Port cilantro/structs to JavaScript

Signed-off-by: Don Naegely <naegelyd@gmail.com>
No need to return here and below in `hide`.