Port base models to JavaScript

Signed-off-by: Byron Ruth <b@devel.io>
Merge pull request #525 from cbmi/base-models

Port base models to JavaScript