diff --git a/js/battledata.js b/js/battledata.js
index 4d7a2e131..20824a55f 100644
--- a/js/battledata.js
+++ b/js/battledata.js
@@ -1083,7 +1083,7 @@ var Tools = {
},
getPokemonIcon: function (pokemon) {
- this.getIcon(pokemon, true)
+ return this.getIcon(pokemon, true);
},
getIcon: function (pokemon, newSize) {
var num = 0;
diff --git a/js/search.js b/js/search.js
index a48ed729c..abfa8b521 100644
--- a/js/search.js
+++ b/js/search.js
@@ -125,7 +125,7 @@
this.el.innerHTML = '
' + topbuf + bufs.join('') + '
' + (this.renderingDone ? '' : '');
return true;
};
- Search.prototype.all = function() {
+ Search.prototype.all = function () {
var query = this.q;
var bufs = [[], [], [], [], [], [], []];
var topbufIndex = -1;
@@ -226,7 +226,7 @@
Search.renderRow = function (id, type, matchStart, matchLength, errorMessage) {
switch (type) {
case 'header':
- return '' +id + '
';
+ return '' + id + '
';
case 'pokemon':
var pokemon = BattlePokedex[id];
return Search.renderPokemonRow(pokemon, matchStart, matchLength, errorMessage);