update device.js
Merge branch 'master' of https://github.com/purpleworks-developer/cordova-plugin-device