Ah, so this is why I'm getting a `Uncaught TypeError: Cannot read property 'setAttribute' of undefined ` error when trying to search from the templates.