separate all script sections (head and body)