Im trying to refresh a .log file every second to show instant/realtime update straight to the webpage. My HTML is as follows

**HTML**

```
<html>
<head>
    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
    </head>
<body>
<div id="console" style="background-color:black;color:green;overflow:auto;width:500px;height:700px;">
</div>
</body>

```

**Javascript**

```
<script type="text/javascript">
$(document).ready(function(){
  setInterval(function(){
    $("#console").load('/log/latest.log');
  }, 1000;
});

```

**File Setup**

![enter image description here](https://i.stack.imgur.com/Xuekk.png)