cleaned up a bit
Merge pull request #56 from wolves-2014/refactor-search-js

cleaned up a bit