Added ensure_csrf_cookie decorator to ajax_search to minimize lack of cookie for POST requests while trying to send the cookie in the view that shows the word entry