Now, if a timeout is reached while accessing kioskweb.php with ajax, the current json data is used.