Cleaning files and adding javascript
Merge pull request #1 from NicolasRTT/master

Some organisation and the javascript implementation