ggestions != '') {
				  document.getElementById('search-location-suggestions').innerHTML = suggestions;
				  for (var item of res) {
					document.getElementById('loc-option-'+item.name).addEventListener('click', function(e) {
						document.getElementById('search-location').value = e.target.getAttribute('data-val');
						document.getElementById('search-location-suggestions').style.display = 'none';
					});
				  }
				  document.getElementById('search-location-suggestions').style.display = 'block';
			