see details at http://jsdocedjs.org/ jsdoced.js will automatically extract jsdoc from your code. Using your jsdoc comments, it will generate another javascript file which makes sure your jsdoc is respected during execution.
video edit + voice by @AndraConnect