Simulating document.currentScript when executing Aria Templates in nodejs.