Fixed bug in which $ was being used instead of jQuery.