Some emscripten option tweaks
Add some wrappers for tcl c api functions
More optimised