throws undefined error for $

Wrap scrollStop method in anonymous function so $ can be used.