title: TypeError: Cannot read property "removeAttribute" of null
body: <p>I'm trying to alert "hello" as soon as a button is clicked. I get the error above on my browser, and as seen in the html below, I put the script link below the button tag so I don't know what causes the error. Any help is appreciated.</p>
  
  <p>receiver.js</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function(){
      $("#passform").click(function(){
    alert("hello");
    console.log("hello");
   });
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>index.html</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
   &lt;html&gt;
   &lt;head&gt;
      &lt;link href="public/stylesheets/style.css" rel="stylesheets" /&gt;
   &lt;/head&gt;
  
   &lt;body&gt;
    &lt;button type="submit" id="passform"&gt;&lt;/button&gt;
  
        &lt;script type="scripi/javascript" src="C:/users/owner/desktop/steelVault/public/javascripts/receiver.js"&gt;&lt;/script&gt;
        &lt;script type="scripi/javascript" src="C:/users/owner/desktop/steelVault/public/javascripts/jquery/jquery-2.2.4.min.js"&gt;&lt;/script&gt;
   &lt;/body&gt;
   &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>