update the iot.js