Thanks to Jérôme poloczek.
document.currentScript.parentNode.insertBefore(s, document.currentScript);