My web browser tells me "Uncaught ReferenceError: MyReload is not defined"
Why is that? Because the onload event is looking for a globally accessible function, but the function is trapped within the jquery document ready section.
You don't need to use onload, since the jquery code automatically runs when the DOM is ready.
So you can get rid of the onload event and just use the document ready one.
But that is only going to keep on reloading the web page back to the same page. Your page says "You will be redirected shortly" so where are they being redirected to?
Did you know that you don't need jquery or window.location to redirect a web page? A much more stable and guaranteed redirection technique is to use a meta refresh on the page instead.
Here is all that you need to redirect a page, after 5 seconds, to a new location.
<meta http-equiv="refresh" content="5;url=/index.php">