title: JavaScript is secretly running on my Rails application
body: <p>My only line in the routes file is this:</p>
  
  <pre><code>root :to =&gt; 'spikes#index'
  </code></pre>
  
  <p>In the Javascript assets I have a simple function like this: </p>
  
  <p><strong>spike.js file:</strong></p>
  
  <pre><code>$(function(){
  
      alert("WAT");
      document.write("abc");
  
  });
  </code></pre>
  
  <p>In the Views->spikes->index.html.haml file I have NOTHING! it is empty.
  I used to have the following code, but I removed it:</p>
  
  <pre><code>  = javascript_include_tag 'spike'
  </code></pre>
  
  <p>But still when I run my Rails app, I see an alert and "abc" written on the browser.</p>
  
  <p>Where is it calling it from? What on earth!?!</p>
  
  <p>UPDATE: This is also my <strong>application.html.erb file:</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;D3Spike&lt;/title&gt;
    &lt;%= stylesheet_link_tag    "application", :media =&gt; "all" %&gt;
    &lt;%= javascript_include_tag "application" %&gt;
    &lt;%= csrf_meta_tags %&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;%= yield %&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>