Added else statement to ajaxRetrieve. Can't return from ajaxRetrieve function