Change $ to jQuery.