C++-like bitset library for JavaScript