diff --git a/app/helpers/xhive/application_helper.rb b/app/helpers/xhive/application_helper.rb
index <HASH>..<HASH> 100644
--- a/app/helpers/xhive/application_helper.rb
+++ b/app/helpers/xhive/application_helper.rb
@@ -1,7 +1,7 @@
 module Xhive
   module ApplicationHelper
     def initialize_widgets_loader
-      javascript_tag "WidgetLoader.load()"
+      "<script type='text/javascript'>WidgetLoader.load()</script>".html_safe
     end
   end
 end
diff --git a/lib/xhive/engine.rb b/lib/xhive/engine.rb
index <HASH>..<HASH> 100644
--- a/lib/xhive/engine.rb
+++ b/lib/xhive/engine.rb
@@ -7,6 +7,8 @@ module Xhive
     initializer "xhive.extend_application_controller" do
       ActiveSupport.on_load(:action_controller) do
         extend Xhive::Widgify
+        include Xhive::ApplicationHelper
+        helper_method :initialize_widgets_loader
       end
     end
     initializer "xhive.load_all_controller_classes" do
Load helpers into ApplicationController