Need help pulling string from a website to use in rules

I did a little home work and found a solution based on this post:

Items file

String AirbnbGuest_Name "Airbnb guest names" 	(gSkur) { http="<[HTTP://mywebsite.com:300000:JS(getSFBayAirbnbGuestName.js)]"}

getSFBayAirbnbGuestName.js

(function(csv) { 
  var arr = csv.split("Greetings ");
  var arr2 = arr[1].split(",</B>");
  return arr2[0];
})(input);