Put button class keys into commas for use in jquery.dialog.