Updated documentation in device.js