I am currently making a plugin that can create new buttons, sprites, text, ect. during runtime.
Develop games in your browser. Powerful, performant & highly capable.
You should be able to find out the answers to that question there.