title: Crash when using $q on an angularjs and parse app
body: <p>I am learning how to use $q for asynchronous code. I have not found any information about how to use this for a function outside of the controller function.  I have the code below and it crashes right after the $q.defer() line and I don't know why.</p>
  
  <pre><code>function playerNames($q) {
  
  Parse.$ = jQuery;
  
  Parse.initialize("mykey", "mykey");
  
  var namesdfd = $q.defer();
  .
  .
  .
  };
  
  app.controller('NameController', ['$scope', function($scope, $q) {scope.names = playerNames($q)}]);
  </code></pre>