Button: fix functionality in buttonset

Now it allows to pass options to JS button also if it's inside buttonset.