for Javascript Battles