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

This reverts commit e92a33aab7af162a905a1a976ebc3f02ac546023.