 if (document.getElementById('search-location').value.trim() === '' && document.getElementById('search-tag').value.trim() === '') {
                window.location.href = '?l=&s=';
            } else if (document.getElementById('search-location').value.trim() !== '' && document.getElementById('search-tag').value.trim() === '') {
                window.location.href = '?l='+encodeURIComponent(document.getElementById('search-location').value);
            } else if (document.getElementById('search-location').