Add onSearchError callback for handling AJAX failures
Merge pull request #117 from janfoeh/ajax-error-handler

Add onSearchError callback for handling AJAX failures
add function as lookup