Major compatibility fix for Firefox and IE with buttons

Fixed a bug, where buttongroup and -set events were not called properly
with Firefox and IE.