Copy and past them between script tags and change the (*Page URL*) as required.
var seconds = 5;
var milliseconds = seconds * 1000;
window.onload = function()
// Call the function 5 seconds after the page is loaded.
// Refresh after 5 seconds