Port Pokemon Minus' scripts.js to pokedex.js