Add JS Doc and test of generation of documentation