Fullscreen support in emscripten, and some render target code cleanup