I got it working now.
The only problem im left with is dealing with long strings.
How can I manipulate the html data when I get lines that are 1000+ characters long?

* /echo: line too long (line 28, script1.mrc)