Javascript Template Compiler written in javascript