Use $ instead of jQuery

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