setTimeout(function(){ window.location.href = 'homepage-url'; }, 5 * 1000);