Update device.coffee