Fixes ajax search issue

Search wasn't working when performed from the details view. This
adjusts the query to work.
Merge pull request #142 from codeforamerica/fix-detail-search

Fixes ajax search issue