            console.log('Send STOP(999) is successful')
          }
        })
      }

      // clearInterval

      function webclrInt() {
        if (refresh !== undefined) {
          clearInterval(refresh)
          console.log('refresh is cleared')
        } else {
          console.log('refresh is undefined')
        }
      }

      // Start motion

      $('#touchpad-container').on('mousedown touchstart', function() {
        webclrInt()
        $.getJSON("/KAREL/webmonitor", function(data){
      