#39 verify buttons object hasOwnProperty before creating button