A jQuery utility function for dynamic non-destructive string truncation.