number printing fixes from emscripten