Reduced emscripten generated code size significantly with LINKABLE=1 option and -O2 --closure 1.