title: setTimeout and redirect with javascript
body: <p>I am using jQuery to Countdown timer and then redirect to a particular page.
  If the user touches the link (Circle in my case), it'll redirect to another page.</p>
  
  <p>This is my code. How do I redirect my page after 5 seconds?</p>
  
  <pre><code>//Some API call
  success: function(response){
      console.log("Server response: ", response.redirect);
      $('#cmx_portal_oauth_welcome_dialog').popup("open"); // Opening something!
      $('.redirect').attr('href',response.redirect); //Response.redirect contains my forwarding URL.
  }
  setTimeout( window.location.replace(response.redirect ), 5000);   
  </code></pre>
  
  <p>Does the setTimeout work well with window.location.replace(response.redirect)?</p>