Device.js commented to the full