jQuery helper for using a bootstrap button group in a form