Convert button ID's to button names in JS