Issue #5829: corrects some mistakes after added jsDocs.

Corrects some mistakes after added jsDocs.