add cbit implementation in javascript
implement CBIT decoding functions