added cordova device plugin