FacetWP – customize the proximity location label

(function($) {
    $(document).on('facetwp-refresh', function() {
        if (0 < FWP.facets.location.length) {
            var location_label = FWP.facets.location[3];
            // TODO modify "location_label" to strip out everything but the zip code
            FWP.facets.location[3] = location_label;
        }
     });
})(jQuery);