Added text.js template support