create list from .php file

I need to create a list of folders listed in a .php file. The following script returns the correct folders, but I need the script to add a comma after each folder name so I can create a list.

tell application "Safari"
	set URL of document 1 to "http://mywebsite.com/myfile.php"
	delay 2
	set theText to text of document 1
	quit
end tell
set myList to theText as list

Returns:

{"folder 1
folder 2
folder 3
folder 4
"}

need it to return:

{"folder 1,
folder 2,
folder 3,
folder 4,
"}

so I can apply the extra line to make it a list for the user to choose from:

tell application "Safari"
	set URL of document 1 to "http://mywebsite.com/myfile.php"
	delay 2
	set theText to text of document 1
	quit
end tell
set myList to theText as list
set appChoice to choose from list {myList}

set myList to paragraphs of theText as list
set appChoice to choose from list myList