JavaScript script for modulus computation of big numbers