title: Uncaught referenceError: Object is not defined
body: <p>I have a Javascript object in an external js file that looks like this:</p>
  
  <pre><code>function SomeObj() {
      this.property = 0;
      this.property = null;
  }
  
  SomeObj.prototype = {
      methodA: function() {},
      methodB: function() {}
  }
  </code></pre>
  
  <p>In my View files, I load it like this:</p>
  
  <pre><code>&lt;script type ="text/javascript" src="someObj.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And in jQuery, I instantiate it like this:</p>
  
  <pre><code>&lt;script type = "text/javascript"&gt;
  
  var someObject = new SomeObj();
  
  &lt;/script&gt;
  </code></pre>
  
  <p>At this point. <code>console.log</code> spits out the UncaughtReference error saying <code>someObj</code> is not defined.</p>
  
  <p>What's wrong ?
  Help me with this
  Thanks in advance</p>