title: 'ReferenceError: web3 is not defined on a client side application
body: <p>I am building a client side web application with web3js and metamask. I have the web3 javascript file in a folder and metamask installed on firefox. I included the web3 file with a HTML script tag and made the metamask connection in the code.</p>
  
  <p>Nevertheless, I keep getting the error "ReferenceError: web3 is not defined"</p>
  
  <p>Can someone please help me with this or how to connect web3 and metamask for client side applications?</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript" src="js/web3.min.js"&gt;&lt;/script&gt;
  
  
          window.addEventListener('load', function() {
  
              if (typeof web3 !== 'undefined') {
                  web3js = new Web3(web3.currentProvider);
              } else {
               // set the provider you want from Web3.providers
                  web3js = new Web3(new Web3.providers.HttpProvider("http://10.50.0.3:22000"));
              }
  
              // Now you can start your app &amp; access web3 freely:
              startApp();
  
          })
  
  </code></pre>