[NEXUS-5941] JSDoc and minor fixes

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>