Port cilantro/structs to JavaScript

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Merge pull request #639 from cbmi/structs-to-js

Port cilantro/structs to JavaScript