BitArray class for JavaScript/ECMAScript