title: how to get http: request to work in an electron app
body: <p>I am still new to electron and nodejs but am wanting to do this project. I would like to open google in an http: request(url, response, body) and store the html  contents in an array. </p>
  
  <p>here is a code example I tried.</p>
  
  <pre><code>function website(){
     var content=[];
     var request = require('request')
  
     var url = 'http://www.google.com'
  
     function goog(callback) {
         request(url, function(error, response, body) {
            if (!error &amp;&amp; response.statusCode == 200) {
                content.push(body);
            }
         })
              callback(content);
     }
  
   }
  </code></pre>
  
  <p>I placed a module.exports = website; at the bottom to export it back to the index.html page.</p>
  
  <p>I know I am missing some basic fundamentals but hopefully someone could give me some good directions to help me complete the task and learn.</p>
  
  <p>Please state things in a step by step easy to understand way. </p>
  
  <p>Thanks</p>