jQuery(document).ready(function($) { is equivalent to calling jQuery(function($) {. http://api.jquery.com/ready/