Earlier quoted context omitted.
If you're looking to rewrite the game, I'd recommend looking into Unity3D[1] instead of trying to make it in JavaScript. It'll be a lot less painful. Out of the gate, Unity3D provides a much better indie game development environment than trying to do it JavaScript. Even though their name includes "3D", their software fully supports 2D games. Plus, there are no royalties/costs for the personal edition. 1 - http://unit…
I'd expect the Wesnoth community to be against Unity because it's not free software.
While Unity3D is conditionally free-as-in-beer, it definitely isn't free-as-in-speech. Unreal Engine has recently gone kinda free too, but not really.
In any event, best wishes to the Wesnoth community and continued fun to be had by both those playing it and those progressing it.