Refactors Pokemon js