Improve display of search results
Fix jshint warnings