Add umd and tests
Fix test references
Get build.js for test to work
Add build.js for document