title: How to write AMD compatible JavaScript classes?
body: <p>What is the best method for writing AMD compatible JavaScript classes to be used as part of a modular app?</p>
  
  <p>I usually write my classes using the singleton approach. Unless there is some trick to making it work with AMD, this does not appear to be compatible.</p>