[JS Code Hints] Fix Issue #3614

Fixes Issue #3614
Don't hint on function, parameter, or variable declarations.