Fix sentence length end condition. Change ajax timeout for SearchController to 10s