works in browser

compiled with ./browser/build and then open test/index.html