use 'insertAdjacentElement' in embed script