exports.BattleScripts = {
  init: function() {
  	for (var i in this.data.Pokedex) {
			var atk = this.data.Pokedex[i].baseStats.atk;
			var def = this.data.Pokedex[i].baseStats.def;
			var spa = this.data.Pokedex[i].baseStats.spa;
			var spd = this.data.Pokedex[i].baseStats.spd;
      var spe = this.data.Pokedex[i].baseStats.spe;
      var hp = this.data.Pokedex[i].baseStats.hp;
			this.data.Pokedex[i].baseStats.atk = spa;
			this.data.Pokedex[i].baseStats.def = spd;
			this.data.Pokedex[i].baseStats.spa = atk;
			this.data.Pokedex[i].baseStats.spd = def;
      this.data.Pokedex[i].baseStats.spe = hp;
      this.data.Pokedex[i].baseStats.hp = spe;
		}
	}
};

@@ -21,16 +21,17 @@
 s = %7B%0A  
+%09
 init: fu
@@ -44,16 +44,17 @@
 () %7B%0A  %09
+%09
 for (var
@@ -278,24 +278,27 @@
 .spd;%0A      
+%09%09%09
 var spe = th
@@ -337,16 +337,19 @@
 ;%0A      
+%09%09%09
 var hp =
@@ -562,32 +562,35 @@
 pd = def;%0A      
+%09%09%09
 this.data.Pokede
@@ -620,16 +620,19 @@
 ;%0A      
+%09%09%09
 this.dat

Update scripts.js