js method to prevent default on empty string submission
fixed merge conflict
Merge pull request #43 from ricarora/search-bug

js method to prevent default on empty string submission