Begin by caramelizing the onion. Add olive oil to a small skillet and place over low heat. Add the onions. Cook the onions slowly, for about 10-15 minutes, until onions are golden brown and fragrant. Add thyme and rosemary and cook for another 2 minutes. Remove from heat and set aside.