Reference $ instead of (global) jQuery

This causes problem when `jQuery` is not defined on the top-level scope.