code: function ScriptResource(scriptNode) {
    this.name = scriptNode.src;
    if (!this.name) {
      this.name = scriptNode.id ?
              'script#' + scriptNode.id :
              'inline-script';
    }
  
    this.inline = (scriptNode.src === '' || scriptNode.src == null);
    this.type = Resource.TYPE_SCRIPT;
    this.element = scriptNode;
  }
docs: A ScriptResource provides an implementation of Resource that works for
  [script] elements (both with a src attribute, and used directly).