Example on using CouchDB with AngularJS and $http