search function fully implemented

change index accordingly
merge redundant code

merged append result functions to appendRecipeResult and
appendMenuResult. both functions are in ajaxSearchResults
minor changes