Reload Page in JavaScript after 5 Seconds using history function