(function($, window, undefined){ ... jquery code... })(jQuery, window);
What does it really mean? Does it also mean $(document).ready()
$(document).ready()
@rsp has a great answer for this specific question.
For general background on this pattern also see http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth.