Setup
I create an OO.ui.ButtonWidget in javascript and then display it using $( \'#XXX\' ).append( mybuttonwidget.$element ).
Lets say the id