Some fixes, a minimal js library to test it and a simple example.