Melt half the butter in a frying pan. Add the onions until they soften. Crush the garlic and fry it until it browns. Pour the whole lot into a good blender.