last one

moved backReference regex out
refactored templates.parse and parseTemplate
removed hasOwnProperty