Remove specific <script> tag in <head> tag by onclick event
<pre><code>&lt;head&gt;
function include(filename, status){
  if(status == on){
     var head = document.getElementsByTagName('head')[0];

     script = document.createElement('script');
     script.src = filename;
     script.type = text/javascript;

     head.appendChild(script)
  }else{
     /// The code wipes the the script tsg that created
  }
}
&lt;/head&gt;

&lt;body&gt;
  &lt;input type="button" value="OPEN" onclick="include('script.js', 'on')"&gt;
  &lt;input type="button" value="CLOSE" onclick="include('', 'off')"&gt;
&lt;/body&gt;
</code></pre>

<p>I want to remove the specific  tag in  tag by onclick event.
What code should be written in the ELSE area, When I click the "CLOSE" botton?</p>
