Hi Francisco,
I do not understand clearly the situation but if you are interested to generate HTML code with a Script Component you can easily do it and then show the generated HTML code in a Message Component placed in the final page with the layout property set to show HTML tags.
To show HTML tags select the Message Component from the Page, and select the Component from the Layout View. From the Layout Properties open the Layout Parameters dialog (using the blue dot) and set the Content Type property to 'text/HTML'.
Let me know if this helps you.
Regards