Javascript Processor of Templates