title: TypeError: not a constructor
body: <p>I am trying to use OOP based javascript/jQuery. I want to put all my JS function inside a class, so it can be easily overridden/hooked.</p>
  
  <p>I tried with a simple OOP code, but its giving type error: not a constructor.
  Please have a look at my code and guide me what is wrong in my code, and how to fix it.</p>
  
  <pre><code>var myTestClass = {
      testAttribute : 'test', // atttribute
      testMethod : function(){ alert( testAttribute); }
  };
  
  var my = new myTestClass();
  my.testMethod();
  </code></pre>
  
  <p>Thanks</p>