Refactor some parts of bitarray
Rename to bitarray-js and remove index