File downloader for cordova 3.0+