document.currentScript

See console...