Cleaned up code a bit and added functionality to clear search result list on "blur"