Only search once when search term changed

We are performing a search already when the window location changes. We
do not need to perform an additional search in the keyup/click
callbacks.

This solves an issue where keystrokes are sometimes dropped when typing
quickly in the search field.
Merge pull request #36 from chrishunt/search-once

Only search once when search term changes