A bit-set implementation in pure Javascript.