Cleaning up DeviceGet.js