update emscripten.txt to better callback API. Also fix up linking to c func rather than cpp func