[EMSCRIPTEN] webcam improvments