Find style and link tags in HTML, consolidate and append them to the <head> tag.