adding Template API For comment layouts, jquery legacy support,etc