JSDoc
An API documentation generator for JavaScript
...JSDoc comments should generally be placed immediately before the code being documented. Each comment must start with a /** sequence in order to be recognized by the JSDoc parser. Adding a description is simple, just type the description you want in the documentation comment. Once your code is commented, you can use the JSDoc 3 tool to generate an HTML website from your source files.