You are good
There is a verse by Kabir: "I went to find a bad person in the universe, and I found none." All human beings are good! There are negative tendencies in people but that is not the basic human nature. That is only on the circumference.
Why do we behave negatively? Because we are hurt. A happy, joyful person will never do harm to anyone. Antidote to jealousy is the knowledge that everybody is going to die. You and the person, whom you are jealous of, are both going to die. It is better to compare yourself with your own self. How you were 10 years or five years ago and what you can be yet tomorrow. The fact that you are a sane human being is enough.
What to do if you are jealous of other people? 1, Know that the person has done some good karma in the past and they are now reaping the fruit. 2, Take it as an inspiration to gain merit now. 3, Create a sense of belongingness with them. See that they are a part of you. 4, Think of all you have that they don't have and feel grateful. 5. Think of so many others who have much less than you have.
What to do if others are jealous of you? 1, Praise them in superlatives. 2, Create a sense of belongingness in them by your kind actions. 3, Know that their feelings are temporary. 4, The best is not to recognise their envy or jealousy at all. If you recognise a feeling as a reality, it only makes your ignorance grow. 5, Know all feelings and emotions are just like passing clouds.
In the Geeta, Krishna talks about all the good qualities. And then He adds that they are already in you. Just like in an atom, the core is positive and the negativity is peripheral. Don't ever think deep inside you is all sorrow or anger or jealousy. Know that it's not in the core.