refactor emscripten.py ll splitting