Update device.js

Adding mac address to the device register script