worked on pet.js