C negamax solver compiled to JavaScript using emscripten