Refactor JSDoc strings in templates