Angularjs to couchdb light proxy / backend