title: Resolve "Uncaught ReferenceError: require is not defined" error in Node.js
body: <p>I am trying to set up a basic contact form using SengGrid and I keep getting a "Uncaught ReferenceError: require is not defined" error. </p>
  
  <p>I have this code in a script tag in the head of the html page. </p>
  
  <pre><code>    var sendgrid = require('sendgrid')(username,pass);
  </code></pre>
  
  <p>I have looked at requirejs, but I am not sure why I am getting this error. Could someone explain to me how I can resolve this issue?</p>