added test.js
added sjcl.bitArray support