Prepare brats on a gas or charcoal grill according to package directions. When brats are cooked, remove from grill and place in foil baking pan. Place pan on grill, add beer, butter and onions. Over medium heat, on a covered grill, allow brats to simmer in beer and onions. Serve each brat with onions on a bun.