Fix bug in localstorage backend

Keyword logic was included twice
Speed up searches by limiting DOM interaction

In both cases, I was calling jQuery on every match while iterating over
search results. This significantly slowed things down.
Merge branch 'master' into gh-pages