changed the route name .text() to using the template