I realize that the $ is just sort of a convention for naming variables pointing to jQuery objects, and is also the function for document.getElementById(), but does function($) m
function($) is an anonymous function that receives the jQuery object as it's sole parameter (of course, you would expect it to be followed by an implementation within {} blocks).