function wrap(x, min, max) {
    var d = max - min;
    return ((x - min) % d + d) % d + min;
}
Returns a localized representation of the given area measurement.

@param {Number} m2 area in square meters
@param {Boolean} isImperial true for U.S. customary units; false for metric