Dubiosity is a project mainly written in JavaScript, it's free.
Dubiosity is an open-source, node.js-based templating language with inheritance and compilation.