replace $ with jQuery, minor jshint fix (remove unused var), refs #7554.