How to load HTML file when using the windows timeout function?
<p>So I'm trying to load my homepage HTML file after it a certain time frame. This is what I have right now:</p>

<pre><code> reply.file('./views/afteradd.html');
      setTimeout( function(){
        window.location.href= "views/add.html";
      }, 1000); 
</code></pre>

<p>I want to load my add.html file after certain period however when I try to create a path to the my file I get an error. I have tried window.location and tried *.href. I'm pretty new in Java Script so it might be a really simple error im not finding. 
The error I'm getting is:
"Debug: internal, implementation, error </p>

<pre><code>ReferenceError: window is not defined"
</code></pre>