Port utils to JavaScript

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Port models to JS

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Fix bad underscore reference and minor formatting

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

Port utils and models to JS