Automatically group <option>'s into <optgroup>'s using a custom data-optgroup attribute