ensure currentScript is wrapped in the presence of SD polyfill.