Calculate CRC (translate from existing C code)

Translate the code fragment from http://www.w3.org/TR/PNG/#D-CRCAppendix
into Javascript. Not yet functional.
Create converter tool (bin/hex/dec)
Fix CRC-32 calculation and create its tests
Render CRC. Fix CRC in the middle of a buffer.