title: Get first result from google search and its URL's with javascript
body: <p>I have a piece of code that returns a URL with the search;</p>
  
  <pre><code>        if (message.content.startsWith(prefix + "google")) {
          var lookup = message.content.replace(";google ", '');
          var newlookup = "https://www.google.com/search?source=hp&amp;ei=mFopW5aMIomSsAfRw77IDg&amp;q=test";
          newlookup = newlookup.replace('test',lookup);
          newlookup = newlookup.replace(/\s+/g, '+')
          message.channel.send("&lt;a:googling:426453223310622740&gt;" + " Loading...").then(r =&gt; {
               setTimeout(function(){
                  r.edit(newlookup);
              }, 2000);
              });
      }
  </code></pre>
  
  <p>But what i want is to return the URL of the first result i get. for example if i search "stackoverflow" i get "<a href="https://stackoverflow.com/">https://stackoverflow.com/</a>"
  im not sure how to do this. Thanks in advance</p>