Javascript auto-reconnect works now