title: Rails 4 respond_to javascript
body: <p>I have a simple PagesController with a 'homepage' method.
  I just want the method to respond to my homepage.js.erb template file which is containing a simple <code>console.log("Hello World!");</code>
  So i wrote <code>respond_to do |format|
              format.js
              format.html
          end</code>
  in my homepage method but it does nothing. ( no <code>hello world</code> in my chrome console ).
  If i remove the <code>format.html</code> rails throw me this error <code>"ActionController::UnknownFormat"</code>.</p>
  
  <p>Is it a problem with turbolinks? how can i do?</p>
  
  <p>Thanks JD</p>