title: js global variable removed when minified
body: <p>I have a javascript file that has two global variables. The problem is that when I minify the file the variables are removed and I get errors in the console. </p>
  
  <p>How can I minify the file and have it keep my global variables.</p>
  
  <pre><code>/** global variables **/
  window.$url = 0;
  window.$searchText = 0;
  </code></pre>