merge scripts together into a single script element if they don't have a src attribute