Fixed Async issue by adding AJAX calls
Modified structure of filteredConditions object to include latitude and longitude