Added template javascript code generator.