title: remove appended script javascript
body: <p>how can I remove my appended script because it causes some problems in my app.</p>
  
  <p>This is my code to get my script</p>
  
  <pre><code>var nowDate = new Date().getTime();
  var url = val.redirect_uri + "notify.js?nocache=" + nowDate + "&amp;callback=dummy";
  var script = document.createElement('script');
  script.src = url;
  document.body.appendChild(script);
  </code></pre>
  
  <p>Then I have an auto load function, that causes to create another element script.</p>
  
  <p>I want to get rid of the previous element that was appended before another element is added.</p>