title: Chrome extensions how to access a global variable set in a script
body: <p>I have this in a chrome extension pulled in js file. </p>
  
  <pre><code>  function App() { alert(1) }
  </code></pre>
  
  <p>When I right click -> show console and try to fire the method the method App is not defined. </p>
  
  <p>Why ? Something wrong here? </p>