Angularjs example using mongo with rest calls