Improve documentation
add tests in the browser