A logical extension of this would be to provide a whitelist function on the component which accepts a function which could be used to filter the list of scripts before they get injected. A consumer of the component may want to restrict the scripts which can be handled to only be a subset of the available possibilities.