updates tests, build as a umd module