But this script has to use this CustomNECDefaultLanguage somehow.
Yes of course.
What about this:
if (typeof window.CustomNECDefaultLanguage == 'undefined') { // window.CustomNECDefaultLanguage is not defined, set to defaults window.CustomNECDefaultLanguage = "en"; } var neccode = window.CustomNECDefaultLanguage; // this replaces line 21