Add document.currentScript test