Cordova app build with angular, ionic and pouchdb