script tags are not executed when using dom.appendChild to inject them