text: //const socket = new WebSocket ( 'ws://192.168.1.68:12345');
  document.getElementById('dispenseFood').addEventListener("click", function(){
      // put ssh to pi and tell it to dispese food instead
      console.log("clicked and in function");
      var url = "http://127.0.0.1:4000/";
      var request = new XMLHttpRequest();
      request.open('POST', url, true);
      request.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
      request.onerror = function() {
          // request failed
      };
      request.send();
     })
  
  document.getElementById('selectTime').addEventListener("click", function(){
     var time = document.getElementById('time');
     var result = time.options[time.selectedIndex].value;
     console.log("selected" + result);
     var url = "http://3.134.238.191:4000/schedule";
     var request = new XMLHttpRequest();
     request.open('POST', url, true);
     request.setRequestHeader('Content-type', 'text/html');
     request.onerror = function() {
         // request failed
     };
     request.send(result);
     });
  