Delete unused functions
Replace Number.prototype.mod with regular fn