John Resig's templater with escape quotes functionality