Template Helpers. Uncaught Error: Syntax error, unrecognized expression: #[object HTMLScriptElement]