I've written this which does loop through the script tags and find the one related to tiPageName but I can't find a way to isolate just this: NFC / RFID Overview Tab-EN. Is there a way to do this by using the DOM structure of the DOM, or do I need to use Regex to grab it?

I work at Texas Instruments and we use tealium and Site Catalyst for our webtracking/conversions. I'm not into the weeds on how it works, but the tiPageName and tiContentGroup are allow us to view metrics back to a given page.

Okay its still puzzling to me but maybe its used in a closure ( was new to me too )

A closure is a special kind of object that combines two things: a function, and the environment in which that function was created. The environment consists of any local variables that were in-scope at the time that the closure was created. In one case, a closure incorporates both the inner function and the local outer variable that existed when the closure was created.