rewrite 'battlePets' code without zepto
rewrite 'battlepets' code without zepto