Need help for : Starting ThreeJS script by document.createElement("script")

Hello all,

Here is the original post :
The core function used :

This works well only one time for different script but when I try to reload another time nothing is rendered ?

If someone has an idea of what is going wrong ?

Best regards.