Apparently bitwise operations are not available in the current version of webgl (??!!!??), meaning ints and uints can't easily be packed into the vec4 color output and unpacked in javascript again.
It may be possible to use these functions to emulate bitwise operations.