Simplification (using String.replace())

@hackygolucky,

I'm not sure if you're interested, but this pull request simplifies templatingLanguage by using [String.replace](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/replace), which can take a regular expression and a callback function that is called multiple times, once for each match (I didn't know this [until recently](http://prust.github.io/page/2/)). The callback function takes the match as the first parameter and the capture groups as the other parameters.

I started working on a [similar templating language](https://github.com/prust/glass-templates) a couple weeks ago, but haven't gotten around to finishing it.

I discovered your github site through NodePDX. If you're interested in having someone review or proofread any code for your talk, let me know. I've only been doing node development full-time for 3 months, but I've been doing Javascript development full-time for almost a decade.