Thanks so much for the advice, works perfect now!
The container is a good catch. I think this will sove your problems. Let us know.
Develop games in your browser. Powerful, performant & highly capable.