fix js doc parse issues, refs #18002

(cherry picked from commit 87ac7b3c5c2034d6e3c0baa17dcc14d459f1a5b2)