regPack.js line 210 & 249 & 266: Z=R*j-R-j-2 line 267: Z1=(R+1)*j-(R+1)-j-2 I think that -2 may be -1. because sometimes better result. It's should be changed by options.