Final work on emscripten lua lib