another way to fix checksum() for node v.0.10