porting downloader and viewer plugins to cordova 3.x, fixing M1 plugin