Changed global jQuery reference inside function to $.

Global jQuery reference is passed in as $, but was still being referenced as jQuery internally. This breaks if you are running in no conflict mode.