Doc: add js code
Merge pull request #1279 from AlexandreToyer/master

Doc: add js code