Heat the butter in a pan and fry the onions until soft. Add the garlic, green chilies and tomato and fry for 5 minutes. Then add the egg one at a time and stir constantly. Add salt and mix well. Garnish with chopped coriander leaves and serve hot.