Update index.js

Monitor reconnect times