First MongoDB to AngularJS working code