Update device.js

parseString is deprecated