removing Drupal factory and using $http.get