diff --git a/lib/erector/widget.rb b/lib/erector/widget.rb
index <HASH>..<HASH> 100644
--- a/lib/erector/widget.rb
+++ b/lib/erector/widget.rb
@@ -584,7 +584,7 @@ module Erector
     protected
     def jquery_ready(txt)
       rawtext "\n"
-      rawtext "jQuery(document).ready(function(){\n"
+      rawtext "jQuery(document).ready(function($){\n"
       rawtext txt
       rawtext "\n});"
     end
Make compatible with jQuery.noConflict()