Use $ instead of jQuery

`$` is passed into the function and consistently the same value and `$` is also used everywhere else in this file.