OpenGL to WASM, learning from my mistakes