Well aside from anything else you don’t have any Html or CSS so there’s no way this can work. Besides that, this code is over complicated and has way too many errors for me to deal with.
I recommend you to start by creating a very simple scene that contains the plane or cube you will put the rendered texture onto. Make sure the basic scene with no render target works first. Maybe start with this scene:
Then try to replace the wood texture with your renderTarget.texture