Also you will need to make sure this is a epub3 as epub2 does not support javascript at all. If it were me I would delete the entire script tag as it refers to browser engines and not ebook reader engines and is basically crap that no one wants in a epub.
It in fact looks like page load timing analytics crap. And refers to license keys. It even reaches out to a website: bam.nr-data.net
See:
https://discuss.newrelic.com/t/relic...nitoring/42055
So it is analytics crap which does not belong in a an epub at all.
Rip it out is my best advice.