Link So you need a template engine..

javascript engine chooser