Fight your enemies in JavaScript