Formatting Output Javascript Array Of Buttons