update test to asserts 4.0.0
update .trvis
um
Make compatible with AMD for use in the browser.

See: https://github.com/amdjs/amdjs-api/wiki/AMD