Switched to HTML templates rather than hard-coded tags.