I've had similar worries about web games, and actually rescued one of mine in a similar way: by making a Duktape binding for ncurses. Great minds think alike. :P
cool :D sounds like an interesting project! I've definitely enjoyed using duktape so far - it's easier to work with than I would have expected