Are you seeing the script in view source ? If so it is being added via code.
In chrome we can search within static files by going to "Sources" tab
hi @Riten - Hope you have done this, please check the customization you have done on 404.jsp page. That might be one of the possible reasons. Do you see this script on 404 pages in direct publish instances ?