Update device.js

parseString is deprecated
Merge pull request #8 from chalkers/patch-1

parseString is deprecated