added js tpl snippet