Javascript: Initial Bits support

This is just enough to make the test suite pass. More to come to make idris-crypto pass!