Draws with TRIANGLES and fixes emscripten loop.