Fixes #10 - Provide a way to run the test in the browser

It looks ugly and not easy to integrate with CI but anyway it works and
needed to refactor react.js