Simple templating in Node.js and the Browser