Fix reference to $ that needs to be jQuery
fixes undefined error
Merge branch 'pr-fix-js-undefined' into branch-3.8.14.1-dev-merged