Pass the button press of the clicked button iframe to a headless version of the game.
Capture and transfer the output to an transparent png back via an http meta refresh in another iframe.