Added animal javascript