title: $http.get() returns html and not json
body: <p>Using $http.get() on a json file, but the response is the HTML code to the page I am using.  That is, console.log(response) prints the entire test.html file.  </p>
  
  <p>main.js is ran on nodejs, which loads test.html.  test.html then should load test.json.  The console.log('here') prints and $scope.hello is set and displays correctly.</p>
  
  <p>main.js</p>
  
  <pre><code>var http = require("http");
  var fs = require('fs');
  
  http.createServer(function (request, response) {
      var data = fs.readFile('test.html', function(err,data) {
          response.writeHead(200, {'Content-Type': 'text/html'});
          response.write(data);
          response.end();
      });
  }).listen(8081);
  </code></pre>
  
  <p>test.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="App"&gt;
    &lt;head&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js"&gt;
      &lt;/script&gt;
  
      &lt;script&gt;
      angular.module('App', []).controller('Ctrl', 
          function($scope, $http) {
              console.log('here');
              $http.get('test.json').success(function(response) {
                  console.log(response);
                  $scope.hello = "hi guys";
              });
          }
      );
      &lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;div ng-controller="Ctrl"&gt;
      &lt;p&gt;{{hello}}&lt;/p&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>test.json</p>
  
  <pre><code>  { "papers" :[
       {
         "authors":"Zubrin, Robert M.; Baker, David A.; Gwynne, Owen",
         "title":"Mars Direct: A Simple, Robust, And Cost Effective Architecture For The Space Exploration Initiative",
         "titleLink":"http://www.marspapers.org/papers/Zubrin_1991.pdf",
         "abstractName":"Abstract",
         "abstractLink":"http://www.marspapers.org/abstr/Zubrin_1991abstr.htm",     
         "year":"1991",
         "category":"MissionEngring",
         "publcation":""
       }
   ]}
  </code></pre>