make sure emscripten_run_script_int returns an int