finds css and js entries (external & inline) in html document. moves all styles to the end of head section and scripts to the end of body section