Melt the butter in a skillet heated to medium heat. Saute the diced onions in the skillet until translucent. Pour the scrambled eggs into the hot pan. Cook on medium, stirring & scraping the bottom of the pan occasionally, until the eggs are cooked through. Season with salt & pepper. Melt cheese on top if desired.