Replace $ with jQuery better compatibility

All the calls in this section use `jQuery()` rather than `$()`. `jQuery()` has better compatibility since `$()` will break if using `jQuery.noConflict()`. This change makes this more consistent and compatible.