add debug logging in emscripten.py of text sizes