add device.js in  nodewebkit/lib/api/