js snippet as template tag