Why the worry over the size? A string of 31 letters, Y and N or T and F doesn't take up that much space.
If all 31 bits are on, your bitset is an integer with 10 places. Stored in a cookie, it takes up 10 characters. If saving 21 characters is of vital importance, fine.
Also, Javascript...