Reconnect from js on disconnect