title: page not redirecting in node
body: <p>I am trying to redirect to a different page from a function using HTML and Javascript. When I hardcode the URL it gets redirected, but when I put it in a variable it does not. please help.</p>
  
  <p>I am using node version 8.x</p>
  
  <pre><code>  function p(){
       var c ="abc.com";
       var e = `
               &lt;script type="text/javascript"&gt;
               function Redirect(){
               window.location=${c};
               }
               document.write("wait");
               setTimeout('Redirect()', 1000);
              &lt;/script&gt;`
    return e;
  
    };
  </code></pre>