Add test for format

- and a simple html to be able to play with it
 in the browser
- also switched to no optimize. for main.js to
 make it easier to experiment in the browser