temporary fix: document.currentScript is not supported in mobile safari