Ensure $ is defined.

Just a quick fix to ensure that `$` is defined and points to jQuery.