adding device plugin for cordova