Fixing use of globally defined variable

`scriptNode` isn't defined and breaking strict mode enforcement.