Solutoin for pouring water for web, cross-compiled to JS from C++ with Emscripten