Added possibility to use templates which are containing inline JS