Add auto-update support for device.js
Merge pull request #3736 from merlinND/devicejs

Add auto-update support for device.js