BitSet data structure for JavaScript