Update index.js

fix user not connect