Find script tags in HTML, consolidate and append them to the <body> tag.