removed obsolete methods from device.js and lines from device.html