combatants work, and js file for testing