code: function getScript(url) {
  		
  		var script = scripts[url.name || url];
  		if (script) { return script; }
  		
  		if (typeof url == 'object') {
  			for (var key in url) {
  				if (url[key]) {
  					script = { name: key, url: url[key] };
  				}
  			}
  		} else {
  
  
  			var els = url.split("/"),
  				 name = els[els.length -1],
  				 i = name.indexOf("?");
  				 
  			script = {
  				name: i != -1 ? name.substring(0, i) : name, 
  				url: url 
  			}; 
  		}
  		
  		scripts[script.name] = script;
  		return script;
  	}
docs: /*
  api.dump = function() {
  console.dir(scripts);
  };
   * private functions **