Javascript porting of Greed curses game using Emscripten and Curses.js