added simple javascript probability calculator for Battle for Wesnoth