diff --git a/lib/generators/npush/toheroku_generator.rb b/lib/generators/npush/toheroku_generator.rb
index <HASH>..<HASH> 100644
--- a/lib/generators/npush/toheroku_generator.rb
+++ b/lib/generators/npush/toheroku_generator.rb
@@ -35,7 +35,7 @@ module Npush
           end
         end
         
-        append_file 'app/assets/javascripts/application.js', '//= require socket.io.min.js'
+        prepend_file 'app/assets/javascripts/application.js', '//= require socket.io.min.js'
       end
     end
   end
Prepend requires instead of appending them + add semicolon at the end of client js initializer