in reply to Converting HTML to RSS

I would suggest stripping the javascript extras with something like:
$text=~s/document.write\('(.+?)'\);/$1/g;
this would replace:
document.write('***ANYTHING***'); 
with the text between the single quotes:
***ANYTHING***
for the data in jsnews.txt , this will create a valid html snippet...