jquery script insertion via the API to check the whole output for duplicates - not just the <head>