Defining a Method on AngularJS Scope Example App for Angularjs API on Node.js