AAA_awright: function unsignedMod(a, b) { return Math.abs(a%b); }