throws undefined error for $

Ran into this while adding plugin to a Drupal module.  Wrap scrollStop method in anonymous function so $ can be used.