It is required to keep autodocumentation standard JSDOC from the very early stage of the development process. This is important action to make project source code more understandable, buggy free and easy maintainable in the future.
Good JSDOC tutorial can be used to make your autodocumentation better.
In the fist rows of source text file (with *.js extension) you need to add keyword @module
/**
* KTX header structure descriptor
* @module app/scripts/loaders/ktxheader
*/
Before class description start it is required to add special comment with keyword @class
/**
* Class KtxHeader represent header for KTX file
* @class KtxHeader
*/