Change your page body to:
<body>
<div id="myjobs">
</div>
<form ><input type="button" onClick="framework_load_plugin_url('fetch2.php',false,'myjobs','../','');return document.MM_returnValue"></form>
</body>
make sure that works with the button press updating the div with the current count.
Once that works, then you can remove the button and use a setTimeout() call to do it every 5 seconds instead. That looks like:
<body>
<div id="myjobs">
</div>
<script>
var refreshTimer = false;
function refreshDiv() {
if (refreshTimer) clearTimeout(refreshTimer);
refreshTimer = setTimeout("framework_load_plugin_url('fetch2.php',false,'myjobs','../','')", 5000);
}
refreshDiv();
</script>
</body>