getting the PouchDB script from globals

an issue in Cordova on Android