if (data.go_online) {
    go.textContent = 'Online';
    go.classList.add('status-online');
    go.classList.remove('status-offline');
  } else {