Create battle.js