script should be defined and we actually use it in just about every javascript file. Take a look at the html source of each page. You'll see a section in the header area where it defines some javascript variables. For example, here it is:

var script = "https://www.ubbcentral.com/forums/ubbthreads.php";