allow to render html tags and javascript code separately

When using Graphos I wanted to be able to output the blocks of HTML and the Javascript code separately (to place them in different parts of my template, eg scripts in head)

This is a quick hack to allow that