Try using JSDOC to generator the documentation.
Use jsdoc Ratio.js
or if that doesn't work then try
java -cp lib/js.jar org.mozilla.javascript.tools.shell.Main -opt -1 -modules node_modules -modules rhino_modules -modules . jsdoc.js Ratio.js
The output file will be in a folder called out.
Try using JSDOC to generator the documentation. Use
jsdoc Ratio.js
or if that doesn't work then tryjava -cp lib/js.jar org.mozilla.javascript.tools.shell.Main -opt -1 -modules node_modules -modules rhino_modules -modules . jsdoc.js Ratio.js
The output file will be in a folder calledout
.