title: jquery.getScript - how to set attribute?
body: <p>I create a script by simply doing</p>
  
  <p><code>jQuery.getScript('hi.js').done(function(script){ /*script is a plain text */})</code></p>
  
  <p>as we see, "done"'s parameter is "script", but it is just a text of loaded script. However I need access to the element itself! What if I want to set its ID to "helloScript"?</p>
  
  <p>In vanilla js I can do this:</p>
  
  <pre><code>var script = document.createElement("script");
  script.type = "text/javascript";
  script.src = url;
  script.setAttribute('id', 'helloScript'); // &lt;----------------------- this!
  document.getElementsByTagName("head")[0].appendChild(script);
  </code></pre>
  
  <p>but how to do this in jQuery, I wonder?</p>