[JS Code Hints] Fix Issue #3614

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