use JQuery in a non conflicting way

Bind '$' to jQuery explicityly inside an anonymous function to prevent name clashes with other libraries that use the '$' sign as global variable.