Add auto-update support for device.js