I try to calculate with JS\' modulo function, but don\'t get the right result (which should be 1). Here is a hardcoded piece of code.
var checkSum = 21050170
Silent Matt has developed a Javascript library for Big Integers. It could solve this issue too.