javascript: test template